Runtime class

Properties

dispose IO<Unit>
no setter
disposed bool
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

mergeLayerContext(LayerContext layerContext) Runtime
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
provideLayer<E, S>(Layer<E, S> layer) EIO<E, S>
provideLayerLazy(Layer layer) IO<Unit>
provideLayers(Iterable<Layer> layers) EIO<dynamic, Unit>
provideLayersLazy(Iterable<Layer> layers) IO<Unit>
provideService<S>(Layer<dynamic, S> layer) IO<Unit> Function(S service)
run<E, A>(EIO<E, A> zio, {DeferredIO<Never>? interruptionSignal}) FutureOr<Exit<E, A>>
runFuture<E, A>(EIO<E, A> zio, {DeferredIO<Never>? interruptionSignal}) Future<Exit<E, A>>
runFutureOrThrow<E, A>(EIO<E, A> zio, {DeferredIO<Never>? interruptionSignal}) Future<A>
runOrThrow<E, A>(EIO<E, A> zio, {DeferredIO<Never>? interruptionSignal}) FutureOr<A>
runSync<E, A>(EIO<E, A> zio, {DeferredIO<Never>? interruptionSignal}) Exit<E, A>
Try to run the ZIO synchronously, throwing a Future if it is asynchronous.
runSyncOrThrow<E, A>(EIO<E, A> zio) → A
Try to run the ZIO synchronously, throwing a Future if it is asynchronous.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

defaultRuntime Runtime
getter/setter pair

Static Methods

withLayers(Iterable<Layer> layers, {Logger? logger, LogLevel? logLevel}) EIO<dynamic, Runtime>