()
| 92 | } |
| 93 | } |
| 94 | public interruptIfRunning() { |
| 95 | if (this.fiberState) { |
| 96 | Effect.runFork( |
| 97 | Effect.zipRight( |
| 98 | Ref.set(this.fiberState.interruptedRef, true), |
| 99 | this.fiberState.fiber.interruptAsFork(this.fiberState.fiber.id()) |
| 100 | ) |
| 101 | ) |
| 102 | this.fiberState = undefined |
| 103 | } |
| 104 | } |
| 105 | private maybeResume() { |
| 106 | if (!this.fiberState && this.stream) { |
| 107 | this.run(this.stream) |
no outgoing calls
no test coverage detected