(event: string)
| 81 | const events: string[] = [] |
| 82 | const received = yield* Deferred.make<string[]>() |
| 83 | const push = (event: string) => { |
| 84 | events.push(event) |
| 85 | if (events.includes("created") && events.includes("updated")) { |
| 86 | Deferred.doneUnsafe(received, Effect.succeed(events)) |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | const unsubscribe = yield* source.listen((event) => { |
| 91 | if (event.type === SessionNs.Event.Created.type) push("created") |