| 2278 | } |
| 2279 | |
| 2280 | class PubSubImpl<in out A> implements PubSub<A> { |
| 2281 | readonly [TypeId] = { |
| 2282 | _A: identity |
| 2283 | } |
| 2284 | |
| 2285 | readonly pubsub: PubSub.Atomic<A> |
| 2286 | readonly subscribers: PubSub.Subscribers<A> |
| 2287 | readonly scope: Scope.Closeable |
| 2288 | readonly shutdownHook: Latch.Latch |
| 2289 | readonly shutdownFlag: MutableRef.MutableRef<boolean> |
| 2290 | readonly strategy: PubSub.Strategy<A> |
| 2291 | |
| 2292 | constructor( |
| 2293 | pubsub: PubSub.Atomic<A>, |
| 2294 | subscribers: PubSub.Subscribers<A>, |
| 2295 | scope: Scope.Closeable, |
| 2296 | shutdownHook: Latch.Latch, |
| 2297 | shutdownFlag: MutableRef.MutableRef<boolean>, |
| 2298 | strategy: PubSub.Strategy<A> |
| 2299 | ) { |
| 2300 | this.pubsub = pubsub |
| 2301 | this.subscribers = subscribers |
| 2302 | this.scope = scope |
| 2303 | this.shutdownHook = shutdownHook |
| 2304 | this.shutdownFlag = shutdownFlag |
| 2305 | this.strategy = strategy |
| 2306 | } |
| 2307 | |
| 2308 | pipe() { |
| 2309 | return pipeArguments(this, arguments) |
| 2310 | } |
| 2311 | } |
| 2312 | |
| 2313 | const makePubSubUnsafe = <A>( |
| 2314 | pubsub: PubSub.Atomic<A>, |
nothing calls this directly
no outgoing calls
no test coverage detected