Package-level declarations

Types

Link copied to clipboard
abstract class Effect<A>(val thunk: suspend () -> A)

An abstract representation of a computation that may produce a value or fail with an error.

Link copied to clipboard
open class IO<A>(thunk: suspend () -> A) : Effect<A>

A concrete implementation of Effect for handling side-effecting computations.

Functions

Link copied to clipboard
fun <A> io(value: A): IO<A>

fun <A> io(thunk: suspend () -> A): IO<A>

Creates an IO instance from a suspendable computation.