( pubsub: PubSub.Atomic<A>, subscribers: PubSub.Subscribers<A>, strategy: PubSub.Strategy<A> )
| 1484 | } |
| 1485 | |
| 1486 | const makeSubscriptionUnsafe = <A>( |
| 1487 | pubsub: PubSub.Atomic<A>, |
| 1488 | subscribers: PubSub.Subscribers<A>, |
| 1489 | strategy: PubSub.Strategy<A> |
| 1490 | ): Subscription<A> => |
| 1491 | new SubscriptionImpl( |
| 1492 | pubsub, |
| 1493 | subscribers, |
| 1494 | pubsub.subscribe(), |
| 1495 | MutableList.make<Deferred.Deferred<A>>(), |
| 1496 | Latch.makeUnsafe(false), |
| 1497 | MutableRef.make(false), |
| 1498 | strategy, |
| 1499 | pubsub.replayWindow() |
| 1500 | ) |
| 1501 | |
| 1502 | class BoundedPubSubArb<in out A> implements PubSub.Atomic<A> { |
| 1503 | array: Array<A> |
no test coverage detected