Hyperlinkv0.8.0-beta.28

Function

Function.LazyArgtypeeffect/Function.ts:204
(): A

A zero-argument function that produces a value when invoked.

When to use

Use to type a lazy value provider that should not run until called.

Example (Creating a lazy argument)

import { Function } from "effect"

const constNull: Function.LazyArg<null> = Function.constant(null)
models
export type LazyArg<A> = () => A
Referenced by 83 symbols