Hullo JS
Search…
⌃K
Links

timeout

import { timeout } from '@hullo/core'
This is a tiny helper function that returns a Promise that returns after specified amount of milliseconds.
import { timeout } from '@hullo/core';
(async weWillRockYou() => {
while (true) {
console.log('tum');
await timeout(100);
console.log('dum');
await timeout(100);
console.log('clap');
await timeout(200);
}
})()