OnceVar

turbolift.io.OnceVar
See theOnceVar companion object
sealed trait OnceVar[A] extends Get[A], Put[A]

Variable writable once.

Starts as empty. Any get operation blocks until put happens.

Attributes

Companion
object
Graph
Supertypes
trait Put[A]
trait Get[A]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

final def asGet: Get[A]
final def asPut: Put[A]

Inherited methods

final def get: Computation[A, IO]

Attributes

Inherited from:
Get
final def put(value: A): Computation[Unit, IO]

Attributes

Inherited from:
Put
final def tryGet: Computation[Option[A], IO]

Attributes

Inherited from:
Get
final def tryPut(value: A): Computation[Boolean, IO]

Attributes

Inherited from:
Put

Inherited and Abstract methods

def unsafeAsThunk: () => A

Attributes

Inherited from:
Get
def unsafeTryGet: Option[A]

Attributes

Inherited from:
Get
def unsafeTryPut(value: A): Boolean

Attributes

Inherited from:
Put