source: trip-planner-front/node_modules/piscina/test/fixtures/esm-async.mjs

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 241 bytes
Line 
1import util from 'util';
2const sleep = util.promisify(setTimeout);
3
4// eslint-disable-next-line no-eval
5function handler (code) { return eval(code); }
6
7async function load () {
8 await sleep(100);
9 return handler;
10}
11
12export default load();
Note: See TracBrowser for help on using the repository browser.