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

Function unbounded

packages/effect/src/PubSub.ts:467–473  ·  view source on GitHub ↗
(options?: {
  readonly replay?: number | undefined
})

Source from the content-addressed store, hash-verified

465 * @since 2.0.0
466 */
467export const unbounded = <A>(options?: {
468 readonly replay?: number | undefined
469}): Effect.Effect<PubSub<A>> =>
470 make({
471 atomicPubSub: () => makeAtomicUnbounded(options),
472 strategy: () => new DroppingStrategy()
473 })
474
475/**
476 * Creates a bounded atomic PubSub implementation with optional replay buffer.

Callers

nothing calls this directly

Calls 2

makeAtomicUnboundedFunction · 0.85
makeFunction · 0.70

Tested by

no test coverage detected