Runtime class

The Effect Runtime System that executes effects.

The runtime is responsible for interpreting Effect descriptions into actual side effects and managing their execution.

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

fork<A, E, R>(Effect<A, E, R> effect, [Context<R>? context]) Fiber<A, E>
Creates a fiber that can be used to manage concurrent execution
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runConcurrently<A, E, R>(List<Effect<A, E, R>> effects, [Context<R>? context]) Future<List<Exit<A, E>>>
Runs multiple effects concurrently and returns when all complete
runFireAndForget<A, E, R>(Effect<A, E, R> effect, [Context<R>? context]) → void
Runs an effect in a fire-and-forget manner
runRace<A, E, R>(List<Effect<A, E, R>> effects, [Context<R>? context]) Future<Exit<A, E>>
Runs multiple effects concurrently and returns the first successful result
runToExit<A, E, R>(Effect<A, E, R> effect, [Context<R>? context]) Future<Exit<A, E>>
Runs an effect and returns its Exit result
runUnsafe<A, E, R>(Effect<A, E, R> effect, [Context<R>? context]) Future<A>
Runs an effect unsafely, throwing on failure
runWithCallbacks<A, E, R>(Effect<A, E, R> effect, {void onSuccess(A)?, void onFailure(E)?, void onDefect(Object)?, Context<R>? context}) Future<void>
Runs an effect and handles success/failure with callbacks
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

defaultRuntime Runtime
The default runtime instance
no setter