File
Blob: src/node/timers.ts
| 1 | // Copyright (c) 2017-2022 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | // Copyright Joyent and Node contributors. All rights reserved. MIT license. |
| 5 | |
| 6 | import * as _promises from 'node-internal:internal_timers_promises'; |
| 7 | import { |
| 8 | setTimeout, |
| 9 | clearTimeout, |
| 10 | setImmediate, |
| 11 | clearImmediate, |
| 12 | setInterval, |
| 13 | clearInterval, |
| 14 | active, |
| 15 | unenroll, |
| 16 | enroll, |
| 17 | } from 'node-internal:internal_timers'; |
| 18 | |
| 19 | export * from 'node-internal:internal_timers'; |
| 20 | export const promises = _promises; |
| 21 | |
| 22 | export default { |
| 23 | promises: _promises, |
| 24 | setTimeout, |
| 25 | clearTimeout, |
| 26 | setImmediate, |
| 27 | clearImmediate, |
| 28 | setInterval, |
| 29 | clearInterval, |
| 30 | active, |
| 31 | unenroll, |
| 32 | enroll, |
| 33 | }; |