MCPcopy Create free account
hub / github.com/Effect-TS/effect / suspend

Function suspend

packages/effect/src/internal/config.ts:597–602  ·  view source on GitHub ↗
(config: LazyArg<Config.Config<A>>)

Source from the content-addressed store, hash-verified

595
596/** @internal */
597export const suspend = <A>(config: LazyArg<Config.Config<A>>): Config.Config<A> => {
598 const lazy = Object.create(proto)
599 lazy._tag = OpCodes.OP_LAZY
600 lazy.config = config
601 return lazy
602}
603
604/** @internal */
605export const sync = <A>(value: LazyArg<A>): Config.Config<A> => {

Callers 2

config.tsFile · 0.70
syncFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected