@qskye/await-until
v1.0.4
Published
A function that waits until a condition is met.
Downloads
3
Maintainers
Readme
Await Until
A simple function that waits until a condition is met.
Installation
npm i @qskye/await-until
Usage
const { awaitUntil } = require('@qskye/await-until');
const conditionFn = () => 5 > 0;
// Default usage
await awaitUntil(conditionFn);
// With custom delay and timeout
await awaitUntil(conditionFn, 100, 5000);