c

com.raquo.airstream.split

SplittableOptionStream

final class SplittableOptionStream[Input] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SplittableOptionStream
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SplittableOptionStream(stream: EventStream[Option[Input]])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def splitOption[Output](project: (Input, Signal[Input]) => Output, ifEmpty: => Output): Signal[Output]

    This .split-s a Stream of an Option by the Option's isDefined property.

    This .split-s a Stream of an Option by the Option's isDefined property. If you want a different key, use the .split operator directly.

    project

    - (initialInput, signalOfInput) => output project is called whenever signal switches from None to Some(). signalOfInput starts with initialInput value, and updates when the parent signal updates from Some(a) to Some(b).

    ifEmpty

    - returned if Option is empty, or if the parent stream has not emitted any events yet. Re-evaluated whenever the parent stream switches from Some(a) to None. ifEmpty is NOT re-evaluated when the parent stream emits None if the last event it emitted was also a None.

  8. val stream: EventStream[Option[Input]]
  9. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped