BooleanStream

com.raquo.airstream.extensions.BooleanStream
final class BooleanStream(val stream: EventStream[Boolean]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def splitBoolean[C](trueF: Signal[Unit] => C, falseF: Signal[Unit] => C): EventStream[C]

Split a stream of booleans.

Split a stream of booleans.

Value parameters

falseF

called when the parent stream switches from true to false. The provided signal emits Unit on every false event emitted by the stream.

trueF

called when the parent stream switches from false to true. The provided signal emits Unit on every true event emitted by the stream.

Attributes

Concrete fields

val stream: EventStream[Boolean]