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

Function unbounded

packages/effect/src/TxPubSub.ts:235–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233 * @since 2.0.0
234 */
235export const unbounded = <A = never>(): Effect.Effect<TxPubSub<A>> =>
236 Effect.gen(function*() {
237 const subscribersRef = yield* TxRef.make<Array<TxQueue.TxQueue<A>>>([])
238 const shutdownRef = yield* TxRef.make(false)
239 return makeTxPubSub(subscribersRef, shutdownRef, "unbounded", Number.POSITIVE_INFINITY)
240 }).pipe(Effect.tx)
241
242// =============================================================================
243// Getters

Callers

nothing calls this directly

Calls 3

makeTxPubSubFunction · 0.85
pipeMethod · 0.65
makeMethod · 0.65

Tested by

no test coverage detected