Companion

interface Companion<E : Effect<*>>

A companion interface for creating instances of Effect subclasses.

This interface defines a factory method for creating an Effect that wraps a pure value, enabling subclasses like IO to provide a way to create effects without side effects.

Parameters

E

The specific Effect subclass.

See also

Inheritors

Functions

Link copied to clipboard
abstract fun <A> pure(value: A): E

Creates an Effect that wraps a pure value.