EitherSignal

com.raquo.airstream.extensions.EitherSignal
final class EitherSignal[A, B](val signal: Signal[Either[A, B]]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def splitEither[C](left: (A, Signal[A]) => C, right: (B, Signal[B]) => C): Signal[C]

This .split-s a Signal of an Either by the Either's isRight property. If you want a different key, use the .splitOne operator directly.

This .split-s a Signal of an Either by the Either's isRight property. If you want a different key, use the .splitOne operator directly.

Value parameters

left

(initialLeft, signalOfLeftValues) => output left is called whenever parent signal switches from Right() to Left(). signalOfLeftValues starts with initialLeft value, and updates when the parent signal updates from Left(a) to Left(b).

right

(initialRight, signalOfRightValues) => output right is called whenever parent signal switches from Left() to Right(). signalOfRightValues starts with initialRight value, and updates when the parent signal updates from Right(a) toRight(b)`.

Attributes

Concrete fields

val signal: Signal[Either[A, B]]