"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.delay_ = exports.delay = void 0
const core_1 = require("./core")
const sleep_1 = require("./sleep")
/**
 * Delay the effect of n milliseconds
 *
 * @dataFirst delay_
 */
function delay(ms, __trace) {
  return (effect) => delay_(effect, ms, __trace)
}
exports.delay = delay
/**
 * Delay the effect of ms milliseconds
 */
function delay_(effect, ms, __trace) {
  return (0, core_1.chain_)((0, sleep_1.sleep)(ms, __trace), () => effect)
}
exports.delay_ = delay_
//# sourceMappingURL=delay.js.map
