class

PlaceOS::Model::Playlist::ItemSchedule::ChangeFeed(T)

Inherits Iterator < Enumerable < Reference < Object

Wraps a single Playlist::Item with its own set of schedules. Used by "distribution" playlists, where each media item is scheduled individually rather than the whole playlist sharing one schedule. Owned 1:1 by the distribution playlist (removed via ON DELETE CASCADE when either the playlist or the underlying item is deleted).

Constructors

new(id : String | Nil | Nil = nil, parent : T.class = T.class)

Instance methods

next

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.

on

Method expects a block which will get invoked with Change(T) parameter on change events received from EventBus

stop

Shortcut for Iterator::Stop::INSTANCE, to signal that there are no more elements in an iterator.

Nested types