async-until
TypeScript icon, indicating that this package has built-in type declarations

4.0.1 • Public • Published

async-until

ci status coverage status

Wait until a given callback returns true. Works great with async/await.

import until from 'async-until';

await until(() => something === someOtherThing);

// Or, more verbose
await until(() => something === someOtherThing, {
  timeout: 500,
  failMsg: 'Nope, it does not.',
});

Readme

Keywords

none

Package Sidebar

Install

npm i async-until

Weekly Downloads

2,134

Version

4.0.1

License

MIT

Unpacked Size

4.03 kB

Total Files

5

Last publish

Collaborators

  • skidding