()
| 120 | } |
| 121 | |
| 122 | function run() { |
| 123 | if (stopped) return |
| 124 | if (running) { |
| 125 | pending = true |
| 126 | return |
| 127 | } |
| 128 | running = true |
| 129 | runFork(effect).addObserver(handleExit) |
| 130 | } |
| 131 | |
| 132 | const cancel = unsafeRegister(keys, run) |
| 133 | yield* Scope.addFinalizer(scope, Effect.sync(cancel)) |
no test coverage detected