SplittableOptionSignal
class AnyVal
trait Matchable
class Any
Value members
Concrete methods
def splitOption[Output](project: (Input, Signal[Input]) => Output, ifEmpty: => Output): Signal[Output]
This .split-s a Signal of an Option by the Option's isDefined property.
If you want a different key, use the .split operator directly.
This .split-s a Signal 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. Evaluated whenever the parent
signalswitches fromSome(a)toNone, or when the parent signal starts with aNone.ifEmptyis NOT re-evaluated when the parent signal emitsNoneif its value is alreadyNone.
- returned if Option is empty. Evaluated whenever the parent
- project
- (initialInput, signalOfInput) => output
projectis called whenever signal switches fromNonetoSome().signalOfInputstarts withinitialInputvalue, and updates when the parentsignalupdates fromSome(a)toSome(b).
- (initialInput, signalOfInput) => output