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

Function suspend

packages/effect/src/Schema.ts:5099–5101  ·  view source on GitHub ↗
(f: () => S)

Source from the content-addressed store, hash-verified

5097 * @since 3.10.0
5098 */
5099export function suspend<S extends Constraint>(f: () => S): suspend<S> {
5100 return make(new SchemaAST.Suspend(() => f().ast))
5101}
5102
5103/**
5104 * Attaches one or more filter checks to a schema without changing the

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected