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

Function toLayer

packages/effect/src/unstable/workflow/Workflow.ts:387–391  ·  view source on GitHub ↗
(this: Workflow<string, AnyStructSchema, Schema.Top, Schema.Top>, execute: any)

Source from the content-addressed store, hash-verified

385 )
386 },
387 toLayer(this: Workflow<string, AnyStructSchema, Schema.Top, Schema.Top>, execute: any) {
388 return Layer.effectDiscard(
389 Effect.flatMap(EngineTag, (engine) => engine.register(this, execute))
390 )
391 },
392 executionId(this: AnyWithProps, payload: any) {
393 return Effect.flatMap(
394 Effect.orDie(this.payloadSchema.makeEffect(payload)),

Callers

nothing calls this directly

Calls 1

registerMethod · 0.80

Tested by

no test coverage detected