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

Function complete

packages/effect/test/workflow/WorkflowEngine.test.ts:920–924  ·  view source on GitHub ↗
(deferred: typeof first, executionId: string, value: string)

Source from the content-addressed store, hash-verified

918 )
919 })
920 const complete = (deferred: typeof first, executionId: string, value: string) =>
921 DurableDeferred.succeed(deferred, {
922 token: DurableDeferred.tokenFromExecutionId(deferred, { workflow, executionId }),
923 value
924 })
925 yield* Effect.gen(function*() {
926 const executionId = yield* workflow.executionId({})
927 const fiber = yield* workflow.execute({}).pipe(Effect.forkChild({ startImmediately: true }))

Callers 2

suiteFunction · 0.50

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected