(cb: (exit: Exit.Exit<A, E>) => void)
| 558 | return Context.get(this.context, ref) |
| 559 | } |
| 560 | addObserver(cb: (exit: Exit.Exit<A, E>) => void): () => void { |
| 561 | if (this._exit) { |
| 562 | cb(this._exit) |
| 563 | return constVoid |
| 564 | } |
| 565 | this._observers.push(cb) |
| 566 | return () => { |
| 567 | const index = this._observers.indexOf(cb) |
| 568 | if (index >= 0) { |
| 569 | this._observers.splice(index, 1) |
| 570 | } |
| 571 | } |
| 572 | } |
| 573 | interruptUnsafe(fiberId?: number | undefined, annotations?: Context.Context<never> | undefined): void { |
| 574 | if (this._exit) { |
| 575 | return |