Guarded<A> class

A Guarded is a wrapper around a value that can only be accessed by a by the specified number of permits (defaults to 1), at any given time.

Constructors

Guarded(A _value, {int permits = 1})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
use<R, E, B>(ZIO<R, E, B> f(A _)) ZIO<R, E, B>

Operators

operator ==(Object other) bool
The equality operator.
inherited