(self: Subscription<A>)
| 1443 | * @since 4.0.0 |
| 1444 | */ |
| 1445 | export const remainingUnsafe = <A>(self: Subscription<A>): Option.Option<number> => { |
| 1446 | if (self.shutdownFlag.current) { |
| 1447 | return Option.none() |
| 1448 | } |
| 1449 | return Option.some(self.subscription.size() + self.replayWindow.remaining) |
| 1450 | } |
| 1451 | |
| 1452 | // ----------------------------------------------------------------------------- |
| 1453 | // internal |