(capacity: number)
| 164 | * @since 2.0.0 |
| 165 | */ |
| 166 | export const dropping = <A = never>(capacity: number): Effect.Effect<TxPubSub<A>> => |
| 167 | Effect.gen(function*() { |
| 168 | const subscribersRef = yield* TxRef.make<Array<TxQueue.TxQueue<A>>>([]) |
| 169 | const shutdownRef = yield* TxRef.make(false) |
| 170 | return makeTxPubSub(subscribersRef, shutdownRef, "dropping", capacity) |
| 171 | }).pipe(Effect.tx) |
| 172 | |
| 173 | /** |
| 174 | * Creates a sliding TxPubSub with the specified capacity. When a subscriber's |
nothing calls this directly
no test coverage detected