MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resumeWithLifecycle

Function resumeWithLifecycle

packages/hosts/mcp/src/tool-server.ts:709–713  ·  view source on GitHub ↗
(executionId: string, response: ResumeResponse)

Source from the content-addressed store, hash-verified

707 const onResumeSettled = (executionId: string): Effect.Effect<void> =>
708 config.pausedExecutionHooks?.onResumeSettled?.(executionId) ?? Effect.void;
709 const resumeWithLifecycle = (executionId: string, response: ResumeResponse) =>
710 Effect.gen(function* () {
711 yield* onResumeStarted(executionId);
712 return yield* engine.resume(executionId, response);
713 }).pipe(Effect.ensuring(onResumeSettled(executionId)));
714
715 const localExecutionAlreadySettled = (executionId: string): Effect.Effect<boolean> =>
716 engine.isExecutionSettled?.(executionId) ?? Effect.succeed(false);

Callers 2

resumeExecutionFunction · 0.85

Calls 2

onResumeStartedFunction · 0.85
onResumeSettledFunction · 0.85

Tested by

no test coverage detected