(): AA 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
Source effect/Function.ts:2041 lines
export type type LazyArg<A> = () => AA 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)
LazyArg<function (type parameter) A in type LazyArg<A>A> = () => function (type parameter) A in type LazyArg<A>AReferenced by 83 symbols
Array.matchArray.matchLeftArray.matchRightBoolean.matchChannel.combineChannel.endSyncChannel.failCauseSyncChannel.failSyncChannel.fromIteratorChannel.fromIteratorArrayChannel.mapAccumChannel.runFoldChannel.runFoldEffectChannel.suspendChannel.syncContext.ReferenceContext.getOrElseDateTime.nowUnsafeDeferred.dieSyncDeferred.failCauseSyncDeferred.failSyncDeferred.syncEffect.failCauseSyncEffect.failSyncEffect.fromOptionEffect.orElseSucceedEffect.suspendEffect.syncEffect.timeoutOrElseEffect.whileLoopFunction.constFalseFunction.constNullFunction.constTrueFunction.constUndefinedFunction.constVoidFunction.constantLayer.suspendLayer.syncLayer.syncContextOption.getOrElse+43 more