| 21 | flush.pipe(Effect.andThen(TestClock.adjust(duration)), Effect.andThen(flush)) |
| 22 | |
| 23 | const show = (result: Seen, patched = false): string => |
| 24 | (AsyncResult.isSuccess(result) |
| 25 | ? result.value.title |
| 26 | : AsyncResult.isFailure(result) |
| 27 | ? "Failure(" + |
| 28 | Option.getOrElse(Cause.findErrorOption(result.cause), () => "?") + |
| 29 | ")" + |
| 30 | (Option.isSome(result.previousSuccess) ? " previous" : "") |
| 31 | : "Initial") + |
| 32 | (result.waiting ? " waiting" : "") + |
| 33 | (patched ? " patched" : "") |
| 34 | |
| 35 | interface NoteStream { |
| 36 | readonly id: string |