PlaceOS::Model::Playlist::ChangeFeed(T)
Inherits Iterator < Enumerable < Reference < Object
forward declare so this file can be required before playlist.cr finishes
defining the parent class (the attribute schedules : Array(Playlist::Schedule)
line needs Schedule resolved at macro-expansion time).
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.