arrow-core-data / arrow.core / Eval / Defer

Defer

data class Defer<out A> : Eval<A>

Defer is a type of Eval that is used to defer computations which produce Eval.

Users should not instantiate Defer instances themselves. Instead, they will be automatically created when needed.

Constructors

<init> Defer is a type of Eval that is used to defer computations which produce Eval.Defer(thunk: () -> Eval<A>)

Properties

thunk val thunk: () -> Eval<A>

Functions

memoize fun memoize(): Eval<A>
value fun value(): A