()
| 1402 | > = MutableQueue.unbounded() |
| 1403 | |
| 1404 | get shutdown(): Effect.Effect<void> { |
| 1405 | return core.flatMap(core.fiberId, (fiberId) => |
| 1406 | core.flatMap( |
| 1407 | core.sync(() => unsafePollAllQueue(this.publishers)), |
| 1408 | (publishers) => |
| 1409 | fiberRuntime.forEachConcurrentDiscard( |
| 1410 | publishers, |
| 1411 | ([_, deferred, last]) => |
| 1412 | last ? |
| 1413 | pipe(core.deferredInterruptWith(deferred, fiberId), core.asVoid) : |
| 1414 | core.void, |
| 1415 | false, |
| 1416 | false |
| 1417 | ) |
| 1418 | )) |
| 1419 | } |
| 1420 | |
| 1421 | handleSurplus( |
| 1422 | pubsub: AtomicPubSub<A>, |
nothing calls this directly
no test coverage detected