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

Function interrupt

packages/effect/src/unstable/workflow/Workflow.ts:377–381  ·  view source on GitHub ↗
(this: AnyWithProps, executionId: string)

Source from the content-addressed store, hash-verified

375 )
376 },
377 interrupt(this: AnyWithProps, executionId: string) {
378 return Effect.flatMap(EngineTag, (engine) => engine.interrupt(this, executionId)).pipe(
379 Effect.withSpan(`${this._tag}.interrupt`, { attributes: { executionId } }, { captureStackTrace: false })
380 )
381 },
382 resume(this: Workflow<string, AnyStructSchema, Schema.Top, Schema.Top>, executionId: string) {
383 return Effect.flatMap(EngineTag, (engine) => engine.resume(this, executionId)).pipe(
384 Effect.withSpan(`${this._tag}.resume`, { attributes: { executionId } }, { captureStackTrace: false })

Callers 1

Calls 2

pipeMethod · 0.65
interruptMethod · 0.45

Tested by

no test coverage detected