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

Function removeSubscribers

packages/effect/src/internal/pubsub.ts:62–75  ·  view source on GitHub ↗
(
  subscription: Subscription<A>,
  pollers: MutableQueue.MutableQueue<Deferred.Deferred<A>>
)

Source from the content-addressed store, hash-verified

60}
61
62const removeSubscribers = <A>(
63 subscription: Subscription<A>,
64 pollers: MutableQueue.MutableQueue<Deferred.Deferred<A>>
65) =>
66(subscribers: Subscribers<A>) => {
67 if (!subscribers.has(subscription)) {
68 return
69 }
70 const set = subscribers.get(subscription)!
71 set.delete(pollers)
72 if (set.size === 0) {
73 subscribers.delete(subscription)
74 }
75}
76
77/** @internal */
78export const bounded = <A>(

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…