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

Function resumeWithLifecycle

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

Source from the content-addressed store, hash-verified

606 const onResumeSettled = (executionId: string): Effect.Effect<void> =>
607 config.pausedExecutionHooks?.onResumeSettled?.(executionId) ?? Effect.void;
608 const resumeWithLifecycle = (executionId: string, response: ResumeResponse) =>
609 Effect.gen(function* () {
610 yield* onResumeStarted(executionId);
611 return yield* engine.resume(executionId, response);
612 }).pipe(Effect.ensuring(onResumeSettled(executionId)));
613
614 const resolveParentSpan = (): Tracer.AnySpan | undefined => {
615 const ps = config.parentSpan;

Callers 2

resumeExecutionFunction · 0.85

Calls 2

onResumeStartedFunction · 0.85
onResumeSettledFunction · 0.85

Tested by

no test coverage detected