StatusSignal

com.raquo.airstream.extensions.StatusSignal
final class StatusSignal[In, Out](val signal: Signal[Status[In, Out]]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def splitStatus[A](resolved: (Resolved[In, Out], Signal[Resolved[In, Out]]) => A, pending: (Pending[In], Signal[Pending[In]]) => A): Signal[A]

This .split-s a signal of Statuses by their type (resolved vs pending). If you want a different key, use the .splitOne operator directly.

This .split-s a signal of Statuses by their type (resolved vs pending). If you want a different key, use the .splitOne operator directly.

Value parameters

pending

(initialPending, signalOfPendingValues) => output pending is called whenever parent signal switches from Resolved to Pending, or when the signal's initial value is evaluated (and it's Pending, as is typical) signalOfPendingValues starts with initialPending value, and updates when the parent signal emits a new Resolved consecutively after another Resolved. This happens when the signal emits inputs faster than the outputs are resolved.

resolved

(initialResolved, signalOfResolvedValues) => output resolved is called whenever parent signal switches from Pending to Resolved. signalOfResolvedValues starts with initialResolved value, and updates when the parent signal emits a new Resolved consecutively after another Resolved.

Attributes

Concrete fields

val signal: Signal[Status[In, Out]]