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

Function poll

packages/effect/src/unstable/workflow/Workflow.ts:372–376  ·  view source on GitHub ↗
(this: Workflow<string, AnyStructSchema, Schema.Top, Schema.Top>, executionId: string)

Source from the content-addressed store, hash-verified

370 ) as any
371 },
372 poll(this: Workflow<string, AnyStructSchema, Schema.Top, Schema.Top>, executionId: string) {
373 return Effect.flatMap(EngineTag, (engine) => engine.poll(this, executionId)).pipe(
374 Effect.withSpan(`${this._tag}.poll`, { attributes: { executionId } }, { captureStackTrace: false })
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 })

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
pollMethod · 0.65

Tested by

no test coverage detected