(self: PubSub<A>)
| 1090 | const unsubscribe = <A>(self: Subscription<A>): Effect.Effect<void> => |
| 1091 | Effect.uninterruptible( |
| 1092 | Effect.withFiber<void>((state) => { |
| 1093 | MutableRef.set(self.shutdownFlag, true) |
| 1094 | return Effect.forEach( |
| 1095 | MutableList.takeAll(self.pollers), |
| 1096 | (d) => Deferred.interruptWith(d, state.id), |
| 1097 | { discard: true, concurrency: "unbounded" } |
| 1098 | ).pipe( |
| 1099 | Effect.tap(() => |
| 1100 | Effect.sync(() => { |
| 1101 | self.subscribers.delete(self.subscription) |
| 1102 | self.subscription.unsubscribe() |
| 1103 | self.replayWindow.close() |
| 1104 | self.strategy.onPubSubEmptySpaceUnsafe(self.pubsub, self.subscribers) |
| 1105 | }) |
| 1106 | ), |
nothing calls this directly
no test coverage detected
searching dependent graphs…