final class RemoteVariableReferenceSyntax[A] extends AnyVal
- Alphabetic
- By Inheritance
- RemoteVariableReferenceSyntax
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RemoteVariableReferenceSyntax(self: Remote[RemoteVariableReference[A]])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def get: ZFlow[Any, ZNothing, A]
Gets the value of a remote variable
- def getAndUpdate(f: (Remote[A]) => Remote[A]): ZFlow[Any, ZNothing, A]
Updates the value stored in a remote variable using the given function, and returns the old value.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def modify[B](f: (Remote[A]) => (Remote[B], Remote[A])): ZFlow[Any, ZNothing, B]
Modifies the value of a remote variable by the given function.
Modifies the value of a remote variable by the given function. The function must return a pair of values, where the first value will be the result of this flow, and the second value is the new value to be stored in the remote variable.
- val self: Remote[RemoteVariableReference[A]]
- def set(a: Remote[A]): ZFlow[Any, ZNothing, Unit]
Sets the value of a remote variable
- def toString(): String
- Definition Classes
- Any
- def update(f: (Remote[A]) => Remote[A]): ZFlow[Any, ZNothing, Unit]
Updates the value stored in a remote variable by the given function
- def updateAndGet(f: (Remote[A]) => Remote[A]): ZFlow[Any, ZNothing, A]
Updates the value stored in a remote variable using the given function, and returns the new value.
- def waitUntil(predicate: (Remote[A]) => Remote[Boolean]): ZFlow[Any, ZNothing, Unit]
Wait until the remote variable changes to a value satisfying the given predicate.
Wait until the remote variable changes to a value satisfying the given predicate.
If the predicate is already true, it returns immediately. Otherwise the flow will be suspended until another forked flow changes its value.