EventStream


superclass: Object



An event stream is a normal Stream, that returns events when called. (see class Event)

Usually, an event stream requires an event to be passed in, often the default event is used:


t = Pbind(\x, Pseq([1,2,3])).asStream; // pbind, e.g. creates an event stream

t.next(Event.default);

t.next(Event.default);


An event stream cannot be played directly with a clock, as it returns events and not time values.

Therefore, an EventStreamPlayer is used, which replaces the event by according time value.

Berlin: clubs bars cafes nightlife going out