Ref

japgolly.scalajs.react.callback.AsyncCallback$.Ref
final class Ref[A]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

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.

Attributes

Returns whether or not the value was set.

Returns whether or not the value was set.

Attributes

def setIfUnsetSync(c: CallbackTo[A]): AsyncCallback[Boolean]

Returns whether or not the value was set.

Returns whether or not the value was set.

Attributes

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

Concrete fields

val get: AsyncCallback[A]

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.

Attributes

lazy val getIfAvailable: CallbackTo[Option[A]]

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

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

Attributes