Observe
If we are allowed effects M
, then Val[A]
can be observed
for changes to a (mutable) value of type A
(for any A
).
Type members
Classlikes
Value members
Abstract methods
def iObserve[D[_], Δ[_, _]](src: IVal[D], f: [i] => (x$1: D[i]) => ITrigger[D, Δ, i])(implicit dom: AuxΔ[D, Δ]): M[Subscription[M]]
def observeImplC[A, U, Δ, B](src: Val[A])(f: A => ContU[M, (Trigger[A, Δ], B)])(implicit dom: Aux[A, U, Δ]): ContU[M, (Subscription[M], B)]
Concrete methods
def alternate0[A, B](ref1: Val[A], ref2: Val[B])(f: (A, B) => Alternator, onSwitchToLeft: M[Unit], onSwitchToRight: M[Unit], onStop: M[Unit])(implicit domA: Dom[A], domB: Dom[B], M: Bind[M]): M[Unit]
def observeImpl[A, U, Δ](src: Val[A])(f: A => Trigger[A, Δ])(implicit dom: Aux[A, U, Δ]): M[Subscription[M]]
Inherited methods
def iContinually[D[_], Δ[_, _], I](f: [i, j] => (x$1: D[j], x$2: Δ[i, j]) => M[Unit]): [j] => (x$1: D[j], x$2: Δ[I, j]) => ITrigger[D, Δ, j]
- Inherited from:
- Observers
def iContinually[D[_], Δ[_, _]](f: [i] => (x$1: D[i]) => M[Unit]): [i] => (x$1: D[i]) => ITrigger[D, Δ, i]
- Inherited from:
- Observers
def iFireReload[D[_], Δ[_, _], I](action: M[Unit], next: [j] => (x$1: D[j], x$2: Δ[I, j]) => ITrigger[D, Δ, j]): ITrigger[D, Δ, I]
- Inherited from:
- Observers
def iThreshold[D[_], Δ[_, _]](f: [i] => (x$1: D[i]) => Option[M[Unit]]): [i] => (x$1: D[i]) => ITrigger[D, Δ, i]
- Inherited from:
- Observers
Keep trying f
until it returns Some
. Then fire the returned program.
Keep trying f
until it returns Some
. Then fire the returned program.
- Inherited from:
- Observers
Keep trying f
until it returns Some
. Then fire the returned program.
Keep trying f
until it returns Some
. Then fire the returned program.
- Inherited from:
- Observers
Keep trying f
until it returns Some
. Then fire the returned program, if any.
Keep trying f
until it returns Some
. Then fire the returned program, if any.
- Inherited from:
- Observers
Keep trying f
until it returns Some
. Then fire the returned program, if any.
Keep trying f
until it returns Some
. Then fire the returned program, if any.
- Inherited from:
- Observers
def untilRightS[S, D, Δ](init: D => Either[M[S], M[Unit]], trans: (S, D, Δ) => Either[M[S], M[Unit]]): D => Trigger[D, Δ]
- Inherited from:
- Observers
Extensions
Inherited extensions
extension [D, Δ](t: Trigger[D, Δ])