(subscriptionRef: SubscriptionRef.SubscriptionRef<number>)
| 64 | it.effect("concurrent subscribes and unsubscribes are handled correctly", () => |
| 65 | Effect.gen(function*() { |
| 66 | const subscriber = (subscriptionRef: SubscriptionRef.SubscriptionRef<number>) => |
| 67 | pipe( |
| 68 | Random.nextIntBetween(0, 200), |
| 69 | Effect.flatMap((n) => |
| 70 | pipe( |
| 71 | subscriptionRef.changes, |
| 72 | Stream.take(n), |
| 73 | Stream.runCollect |
| 74 | ) |
| 75 | ) |
| 76 | ) |
| 77 | const subscriptionRef = yield* (SubscriptionRef.make(0)) |
| 78 | const fiber = yield* pipe( |
| 79 | SubscriptionRef.update(subscriptionRef, (n) => n + 1), |
no test coverage detected