(capacity: number)
| 2320 | ): PubSub<A> => new PubSubImpl(pubsub, subscribers, scope, shutdownHook, shutdownFlag, strategy) |
| 2321 | |
| 2322 | const ensureCapacity = (capacity: number): void => { |
| 2323 | if (capacity <= 0) { |
| 2324 | throw new Error(`Cannot construct PubSub with capacity of ${capacity}`) |
| 2325 | } |
| 2326 | } |
| 2327 | |
| 2328 | // ----------------------------------------------------------------------------- |
| 2329 | // PubSub.Strategy |