(
capacity: number | {
readonly capacity: number
readonly replay?: number | undefined
}
)
| 332 | * @since 2.0.0 |
| 333 | */ |
| 334 | export const bounded = <A>( |
| 335 | capacity: number | { |
| 336 | readonly capacity: number |
| 337 | readonly replay?: number | undefined |
| 338 | } |
| 339 | ): Effect.Effect<PubSub<A>> => |
| 340 | make({ |
| 341 | atomicPubSub: () => makeAtomicBounded(capacity), |
| 342 | strategy: () => new BackPressureStrategy() |
| 343 | }) |
| 344 | |
| 345 | /** |
| 346 | * Creates a bounded `PubSub` with the dropping strategy. The `PubSub` will drop new |
nothing calls this directly
no test coverage detected