Files
2025-11-28 19:45:44 -07:00

14 lines
314 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const delay = require('./delay.js');
const TimeoutError = require('../error/TimeoutError.js');
async function timeout(ms) {
await delay.delay(ms);
throw new TimeoutError.TimeoutError();
}
exports.timeout = timeout;