import * as Effect from "../../../Effect.ts" /** * Sleeps for `millis`. A wait of 0 yields, as the live Clock's does, so an * event later in the same task can still cut it. * * @internal */ export const sleep = (millis: number): Effect.Effect => millis > 0 ? Effect.sleep(millis) : Effect.yieldNow