- Companion:
- class
Value members
Concrete methods
Emit () with a delay (ms
milliseconds after stream is started)
Emit () with a delay (ms
milliseconds after stream is started)
Emit event
with a delay (ms
milliseconds after stream is started)
Emit event
with a delay (ms
milliseconds after stream is started)
Easy helper for custom events. See CustomStreamSource for docs.
Easy helper for custom events. See CustomStreamSource for docs.
Provide start
and stop
callbacks that will be called when the stream
is started and stopped. E.g. create some resource on start, clean it on stop.
The arguments to start
are functions. Call them to do things like emit an
event, emit an error, or get some info:
getStartIndex
returns 1
the first time the signal is started, and is
incremented every time it is started again after being stopped.
getIsStarted
is a function that you can call any time, including
after some delay, to check if the signal is still started, e.g. if
you don't want to update the signal's value if the signal is stopped.
- Value parameters:
- stop
MUST NOT THROW!
- Value parameters:
- emitOnce
if true, the event will be emitted at most one time. If false, the event will be emitted every time the stream is started.
- Value parameters:
- emitOnce
if true, the event will be emitted at most one time. If false, the event will be emitted every time the stream is started.
- Value parameters:
- emitOnce
if true, the event will be emitted at most one time. If false, the event will be emitted every time the stream is started.
Returns a stream that emits events from all off the streams
, interleaved.
Returns a stream that emits events from all off the streams
, interleaved.
Create a stream and a callback that, when fired, makes that stream emit.
Create a stream and a callback that, when fired, makes that stream emit.
Create a stream and a JS callback that, when fired, makes that stream emit.
Create a stream and a JS callback that, when fired, makes that stream emit.
Create a stream and an observer that, when receiving an event or an error, makes that stream emit.
Create a stream and an observer that, when receiving an event or an error, makes that stream emit.
Implicits
Implicits
Provides methods on EventStream: combine, combineWith, withCurrentValueOf, sample
Provides methods on EventStream: combine, combineWith, withCurrentValueOf, sample
Provides debug* methods on EventStream: debugSpy, debugLogEvents, debugBreakErrors, etc.
Provides debug* methods on EventStream: debugSpy, debugLogEvents, debugBreakErrors, etc.
Provides methods on EventStream companion object: combine, combineWith
Provides methods on EventStream companion object: combine, combineWith
Provides methods on EventStream: split, splitByIndex
Provides methods on EventStream: split, splitByIndex