(fiberId?: number | undefined, annotations?: Context.Context<never> | undefined)
| 571 | } |
| 572 | } |
| 573 | interruptUnsafe(fiberId?: number | undefined, annotations?: Context.Context<never> | undefined): void { |
| 574 | if (this._exit) { |
| 575 | return |
| 576 | } |
| 577 | let cause = causeInterrupt(fiberId) |
| 578 | if (this.currentStackFrame) { |
| 579 | cause = causeAnnotate(cause, Context.make(CauseStackTrace, this.currentStackFrame)) |
| 580 | } |
| 581 | if (annotations) { |
| 582 | cause = causeAnnotate(cause, annotations) |
| 583 | } |
| 584 | this._interruptedCause = this._interruptedCause |
| 585 | ? causeCombine(this._interruptedCause, cause) |
| 586 | : cause |
| 587 | if (this.interruptible) { |
| 588 | if (this._running) { |
| 589 | this._deferredInterrupt = true |
| 590 | } else { |
| 591 | this.evaluate(failCause(this._interruptedCause) as any) |
| 592 | } |
| 593 | } |
| 594 | } |
| 595 | pollUnsafe(): Exit.Exit<A, E> | undefined { |
| 596 | return this._exit |
| 597 | } |
no test coverage detected