EventStream

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def combineSeq[A](streams: Seq[EventStream[A]]): EventStream[Seq[A]]
def delay(ms: Int): EventStream[Unit]

Emit () with a delay (ms milliseconds after stream is started)

Emit () with a delay (ms milliseconds after stream is started)

def delay[A](ms: Int, event: A, emitOnce: Boolean): EventStream[A]

Emit event with a delay (ms milliseconds after stream is started)

Emit event with a delay (ms milliseconds after stream is started)

def fromCallback[A]: (EventStream[A], A => Unit)

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.

def fromCallbackUnit: (EventStream[Unit], () => Unit)

Create a stream of Unit, and a callback that, when fired, makes that stream emit.

Create a stream of Unit, and a callback that, when fired, makes that stream emit.

def fromCustomSource[A](shouldStart: StartIndex => Boolean, start: (() => A, FireError, GetStartIndex, GetIsStarted) => Unit, stop: StartIndex => Unit): EventStream[A]

Easy helper for custom events. See CustomStreamSource for docs.

Easy helper for custom events. See CustomStreamSource for docs.

Value parameters:
stop

MUST NOT THROW!

def fromFuture[A](future: Future[A], emitOnce: Boolean)(implicit ec: ExecutionContext): EventStream[A]
def fromJsCallback[A]: (EventStream[A], Function1[A, Unit])

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.

def fromJsPromise[A](promise: Promise[A], emitOnce: Boolean): EventStream[A]

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.

def fromSeq[A](events: Seq[A], emitOnce: Boolean): EventStream[A]
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.

def fromTry[A](value: Try[A], emitOnce: Boolean): EventStream[A]
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.

def fromValue[A](event: A, emitOnce: Boolean): EventStream[A]
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.

def merge[A](streams: EventStream[A]*): EventStream[A]

Returns a stream that emits events from all off the streams, interleaved.

Returns a stream that emits events from all off the streams, interleaved.

def mergeSeq[A](streams: Seq[EventStream[A]]): EventStream[A]
def periodic(intervalMs: Int, resetOnStop: Boolean): PeriodicStream[Int]
def sequence[A](streams: Seq[EventStream[A]]): EventStream[Seq[A]]
def unit(emitOnce: Boolean): EventStream[Unit]

Concrete fields

val empty: EventStream[Nothing]

Event stream that never emits anything

Event stream that never emits anything

Implicits

Implicits

implicit def toCombinableStream[A](stream: EventStream[A]): CombinableStream[A]

Provides methods on EventStream: combine, combineWith, withCurrentValueOf, sample

Provides methods on EventStream: combine, combineWith, withCurrentValueOf, sample

implicit def toDebuggableStream[A](stream: EventStream[A]): DebuggableStream[A]

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

implicit def toSplittableOneStream[A](stream: EventStream[A]): SplittableOneStream[A]

Provides methods on EventStream: splitOne

Provides methods on EventStream: splitOne

implicit def toSplittableOptionStream[A](stream: EventStream[Option[A]]): SplittableOptionStream[A]

Provides methods on EventStream: splitOption

Provides methods on EventStream: splitOption

implicit def toSplittableStream[M[_], Input](stream: EventStream[M[Input]]): SplittableStream[M, Input]

Provides methods on EventStream: split, splitByIndex

Provides methods on EventStream: split, splitByIndex

implicit def toTupleStream2[T1, T2](stream: EventStream[(T1, T2)]): TupleStream2[T1, T2]
implicit def toTupleStream3[T1, T2, T3](stream: EventStream[(T1, T2, T3)]): TupleStream3[T1, T2, T3]
implicit def toTupleStream4[T1, T2, T3, T4](stream: EventStream[(T1, T2, T3, T4)]): TupleStream4[T1, T2, T3, T4]
implicit def toTupleStream5[T1, T2, T3, T4, T5](stream: EventStream[(T1, T2, T3, T4, T5)]): TupleStream5[T1, T2, T3, T4, T5]
implicit def toTupleStream6[T1, T2, T3, T4, T5, T6](stream: EventStream[(T1, T2, T3, T4, T5, T6)]): TupleStream6[T1, T2, T3, T4, T5, T6]
implicit def toTupleStream7[T1, T2, T3, T4, T5, T6, T7](stream: EventStream[(T1, T2, T3, T4, T5, T6, T7)]): TupleStream7[T1, T2, T3, T4, T5, T6, T7]
implicit def toTupleStream8[T1, T2, T3, T4, T5, T6, T7, T8](stream: EventStream[(T1, T2, T3, T4, T5, T6, T7, T8)]): TupleStream8[T1, T2, T3, T4, T5, T6, T7, T8]
implicit def toTupleStream9[T1, T2, T3, T4, T5, T6, T7, T8, T9](stream: EventStream[(T1, T2, T3, T4, T5, T6, T7, T8, T9)]): TupleStream9[T1, T2, T3, T4, T5, T6, T7, T8, T9]