OptionStream
com.raquo.airstream.extensions.OptionStream
final class OptionStream[A](val stream: EventStream[Option[A]]) extends AnyVal
See also: OptionObservable
Attributes
- Graph
-
- Supertypes
-
class AnyValtrait Matchableclass Any
Members list
Value members
Concrete methods
Emit x
if parent stream emits Some(x)
, do nothing otherwise
Emit x
if parent stream emits Some(x)
, do nothing otherwise
Attributes
Emit pf(x)
if parent stream emits Some(x)
and pf
is defined for x
, do nothing otherwise
Emit pf(x)
if parent stream emits Some(x)
and pf
is defined for x
, do nothing otherwise
Attributes
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.
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.
Value parameters
- ifEmpty
-
- returned if Option is empty, or if the parent stream has not emitted any events yet. Re-evaluated whenever the parent
stream
switches fromSome(a)
toNone
.ifEmpty
is NOT re-evaluated when the parent stream emitsNone
if the last event it emitted was also aNone
.
- returned if Option is empty, or if the parent stream has not emitted any events yet. Re-evaluated whenever the parent
- project
-
- (initialInput, signalOfInput) => output
project
is called whenever the parent signal switches fromNone
toSome()
.signalOfInput
starts withinitialInput
value, and updates when the parent stream updates fromSome(a)
toSome(b)
.
- (initialInput, signalOfInput) => output
Attributes
Concrete fields
In this article