(duration: Duration.Duration)
| 84 | } |
| 85 | |
| 86 | sleep(duration: Duration.Duration): Effect.Effect<void> { |
| 87 | return core.async<void>((resume) => { |
| 88 | const canceler = globalClockScheduler.unsafeSchedule(() => resume(core.void), duration) |
| 89 | return core.asVoid(core.sync(canceler)) |
| 90 | }) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | /** @internal */ |
nothing calls this directly
no test coverage detected