Very simple wait function for async Javascript/TypeScript Promises. Surprisingly, nothing similar existed at time of writing.
APACHE-2.0 License
Easily asynchronously wait for a specified time.
npm i await-wait
import { wait } from 'await-wait';
await wait(1000);
// One second has passed
await doAction();
All contributions are welcome, please open an issue or pull request.
To use this repository:
npm i -g pnpm
(if don't have pnpm installed)pnpm i
npx projen
(this will ensure everything is setup correctly, and you can run this command at any time)