(exit: Exit.Exit<A, E>)
| 101 | let pending = false |
| 102 | let stopped = false |
| 103 | const handleExit = (exit: Exit.Exit<A, E>) => { |
| 104 | if (exit._tag === "Failure") { |
| 105 | stopped = true |
| 106 | pending = false |
| 107 | running = false |
| 108 | cancel() |
| 109 | results.unsafeDone(Exit.failCause(exit.cause)) |
| 110 | return |
| 111 | } else { |
| 112 | results.unsafeOffer(exit.value) |
| 113 | } |
| 114 | if (pending) { |
| 115 | pending = false |
| 116 | runFork(effect).addObserver(handleExit) |
| 117 | } else { |
| 118 | running = false |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | function run() { |
| 123 | if (stopped) return |
nothing calls this directly
no test coverage detected