()
| 233 | * @since 2.0.0 |
| 234 | */ |
| 235 | export 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 |
nothing calls this directly
no test coverage detected