Effect
An abstract representation of a computation that may produce a value or fail with an error.
The Effect class encapsulates a suspendable computation (a "thunk") that produces a value of type A. It provides a functional programming interface for transforming, chaining, and handling errors in computations in a type-safe manner. Subclasses, such as IO, implement specific behaviors for executing the computation.
Parameters
A
The type of the value produced by the computation.
thunk
The suspendable computation that produces a value of type A.
See also
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard