wait-until-queue
v1.0.2
Published
wait until callback done with queue
Downloads
14
Readme
wait-until-queue
wait until callback done with queue
Install
npm i wait-until-queue
Usage
import { WaitUntil } from 'wait-until-queue';
const util = new WaitUntil();
await util.wait(() => new Promise<void>(resolve => {
setTimeout(resolve, 3000);
}));