import * as tsplus_module_1 from "@effect/core/io/Clock/operations/sleep";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/zipRight";
/**
 * Returns an effect that is delayed from this effect by the specified
 * `Duration`.
 *
 * @tsplus fluent ets/Effect delay
 */

export function delay_(self, duration, __tsplusTrace) {
  return tsplus_module_2.zipRight_(tsplus_module_1.sleep(() => duration, __tsplusTrace), () => self, __tsplusTrace);
}
/**
 * Returns an effect that is delayed from this effect by the specified
 * `Duration`.
 *
 * @tsplus static ets/Effect/Aspects delay
 */

export const delay = (duration, __tsplusTrace) => self => delay_(self, duration, __tsplusTrace);
//# sourceMappingURL=delay.mjs.map