Ref

final class Ref[A]
class Object
trait Matchable
class Any

Value members

Concrete methods

def set(a: => A): AsyncCallback[Unit]
def setIfUnset(a: => A): AsyncCallback[Boolean]

Returns whether or not the value was set.

Returns whether or not the value was set.

Returns whether or not the value was set.

Returns whether or not the value was set.

Returns whether or not the value was set.

Returns whether or not the value was set.

def setSync(c: CallbackTo[A]): AsyncCallback[Unit]

Concrete fields

If this hasn't been set yet, it will block until it is set.

If this hasn't been set yet, it will block until it is set.

lazy val getIfAvailable: CallbackTo[Option[A]]

Synchronously return whatever value is currently stored. (Ignores atomicity).

Synchronously return whatever value is currently stored. (Ignores atomicity).