* Cancels the warning message that is displayed if a test is using time but * is not advancing the `TestClock`.
()
| 296 | * is not advancing the `TestClock`. |
| 297 | */ |
| 298 | warningDone(): Effect.Effect<void> { |
| 299 | return synchronized.updateSomeEffect(this.warningState, (warningData) => { |
| 300 | if (WarningData.isStart(warningData)) { |
| 301 | return Option.some(core.succeed(WarningData.done)) |
| 302 | } |
| 303 | if (WarningData.isPending(warningData)) { |
| 304 | return Option.some(pipe(core.interruptFiber(warningData.fiber), core.as(WarningData.done))) |
| 305 | } |
| 306 | return Option.none() |
| 307 | }) |
| 308 | } |
| 309 | |
| 310 | private yieldTimer = core.async<void>((resume) => { |
| 311 | const timer = setTimeout(() => { |