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

Function suspend

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

Source from the content-addressed store, hash-verified

582
583/** @internal */
584export const suspend = <A>(config: LazyArg<Config.Config<A>>): Config.Config<A> => {
585 const lazy = Object.create(proto)
586 lazy._tag = OpCodes.OP_LAZY
587 lazy.config = config
588 return lazy
589}
590
591/** @internal */
592export 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…