MCPcopy
hub / github.com/Effect-TS/effect / unsafeInterrupt

Method unsafeInterrupt

packages/effect/src/Micro.ts:499–507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

497
498 _interrupted = false
499 unsafeInterrupt(): void {
500 if (this._exit) {
501 return
502 }
503 this._interrupted = true
504 if (this.interruptible) {
505 this.evaluate(exitInterrupt as any)
506 }
507 }
508
509 unsafePoll(): MicroExit<A, E> | undefined {
510 return this._exit

Callers 7

runForkFunction · 0.95
Micro.test.tsFile · 0.80
fiberInterruptFunction · 0.80
fiberInterruptAllFunction · 0.80
pumpFunction · 0.80
abortFunction · 0.80
["Micro"]Method · 0.80

Calls 1

evaluateMethod · 0.95

Tested by

no test coverage detected