final class SplittableOptionStream[Input] extends AnyVal
- Alphabetic
- By Inheritance
- SplittableOptionStream
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SplittableOptionStream(stream: EventStream[Option[Input]])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def splitOption[Output](project: (Input, Signal[Input]) => Output, ifEmpty: => Output): Signal[Output]
This
.split
-s a Stream of an Option by the Option'sisDefined
property.This
.split
-s a Stream of an Option by the Option'sisDefined
property. If you want a different key, use the .split operator directly.- project
- (initialInput, signalOfInput) => output
project
is called whenever signal switches fromNone
toSome()
.signalOfInput
starts withinitialInput
value, and updates when the parentsignal
updates fromSome(a)
toSome(b)
.- ifEmpty
- returned if Option is empty, or if the parent
stream
has not emitted any events yet. Re-evaluated whenever the parentstream
switches fromSome(a)
toNone
.ifEmpty
is NOT re-evaluated when the parentstream
emitsNone
if the last event it emitted was also aNone
.
- val stream: EventStream[Option[Input]]
- def toString(): String
- Definition Classes
- Any