SplittableOneStream

com.raquo.airstream.split.SplittableOneStream
final class SplittableOneStream[Input](val stream: EventStream[Input]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def splitOne[Output, Key](key: Input => Key)(project: (Key, Input, Signal[Input]) => Output): EventStream[Output]

This operator works like split, but with only one item, not a collection of items.

This operator works like split, but with only one item, not a collection of items.

Attributes

def splitStart[Output](project: (Input, Signal[Input]) => Output, startWith: Output): Signal[Output]

This operator lets you "split" EventStream[Input] into two branches:

This operator lets you "split" EventStream[Input] into two branches:

  • processing of Signal[Input] into Output, and
  • the initial value of Output. This is a nice shorthand to to signal.splitOption in cases when signal is actually stream.toWeakSignal or stream.startWith(initial)

Attributes

Concrete fields

val stream: EventStream[Input]