(capacity: number)
| 126 | * @since 2.0.0 |
| 127 | */ |
| 128 | export const bounded = <A = never>(capacity: number): Effect.Effect<TxPubSub<A>> => |
| 129 | Effect.gen(function*() { |
| 130 | const subscribersRef = yield* TxRef.make<Array<TxQueue.TxQueue<A>>>([]) |
| 131 | const shutdownRef = yield* TxRef.make(false) |
| 132 | return makeTxPubSub(subscribersRef, shutdownRef, "bounded", capacity) |
| 133 | }).pipe(Effect.tx) |
| 134 | |
| 135 | /** |
| 136 | * Creates a dropping TxPubSub with the specified capacity. When a subscriber's |
nothing calls this directly
no test coverage detected