MCPcopy Index your code
hub / github.com/Effect-TS/effect / callback

Method callback

packages/effect/src/internal/fiberRuntime.ts:1057–1062  ·  view source on GitHub ↗
(effect: Effect.Effect<any, any, any>)

Source from the content-addressed store, hash-verified

1055 ) {
1056 let alreadyCalled = false
1057 const callback = (effect: Effect.Effect<any, any, any>) => {
1058 if (!alreadyCalled) {
1059 alreadyCalled = true
1060 this.tell(FiberMessage.resume(effect))
1061 }
1062 }
1063 if (runtimeFlags_.interruptible(runtimeFlags)) {
1064 this._asyncInterruptor = callback
1065 }

Callers

nothing calls this directly

Calls 2

tellMethod · 0.95
resumeMethod · 0.80

Tested by

no test coverage detected