MCPcopy Create free account
hub / github.com/Effect-TS/effect / remainingUnsafe

Function remainingUnsafe

packages/effect/src/PubSub.ts:1445–1450  ·  view source on GitHub ↗
(self: Subscription<A>)

Source from the content-addressed store, hash-verified

1443 * @since 4.0.0
1444 */
1445export 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

Callers

nothing calls this directly

Calls 2

someMethod · 0.80
sizeMethod · 0.65

Tested by

no test coverage detected