ZIOContext<R> class
Represents the context in which a ZIO is executed.
Constructors
-
ZIOContext({required Runtime runtime, required R env, required DeferredIO<
Never> signal}) -
Represents the context in which a ZIO is executed.
factory
Properties
- env → R
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- layers ↔ LayerContext
-
latefinal
-
noEnv
→ ZIOContext<
NoEnv> -
no setter
- runtime → Runtime
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signal
→ DeferredIO<
Never> -
final
-
withoutSignal
→ ZIOContext<
R> -
no setter
Methods
-
accessLayer<
E, A> (Layer< E, A> layer) → ZIO<R, E, A> -
close<
R2, E> () → ZIO< R2, E, Unit> -
copyWith(
{Runtime? runtime, R? env, DeferredIO< Never> ? signal, LayerContext? layers, IMap<Symbol, IMap< ? annotations}) → ZIOContext<String, dynamic> >R> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
provideLayer<
E, S> (Layer< E, S> layer) → ZIO<R, E, S> -
provideService<
E, A> (Layer< dynamic, A> layer, A service) → ZIO<R, E, Unit> -
toString(
) → String -
A string representation of this object.
inherited
-
unsafeAnnotate(
Symbol key, String name, dynamic value) → ZIOContext< R> -
unsafeGetAnnotations(
Symbol key) → IMap< String, dynamic> -
withEnv<
R2> (R2 env) → ZIOContext< R2> -
withRuntime(
Runtime runtime) → ZIOContext< R> -
withSignal(
DeferredIO< Never> signal) → ZIOContext<R>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited