https://github.com/afeiship/next-wait-until
Wait until for next.
https://github.com/afeiship/next-wait-until
loop next until wait
Last synced: about 1 year ago
JSON representation
Wait until for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-wait-until
- Owner: afeiship
- License: mit
- Created: 2020-05-29T02:14:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-19T15:35:12.000Z (over 2 years ago)
- Last Synced: 2025-02-07T12:30:32.921Z (about 1 year ago)
- Topics: loop, next, until, wait
- Language: JavaScript
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-wait-until
> Wait until for next.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
yarn add @jswork/next-wait-until
```
## usage
```js
import '@jswork/next-wait-until';
nx.waitUntil({
timeout: 1000,
interval:200,
condition: function () {
return window.$;
},
change: function (status) {
console.log('change', status);
},
done: function () {
console.log('done');
},
fail: function () {
console.log('fail/timeout');
},
always: function () {
console.log('always');
},
complete: function () {
console.log('complete');
}
});
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-wait-until/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-wait-until
[version-url]: https://npmjs.org/package/@jswork/next-wait-until
[license-image]: https://img.shields.io/npm/l/@jswork/next-wait-until
[license-url]: https://github.com/afeiship/next-wait-until/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-wait-until
[size-url]: https://github.com/afeiship/next-wait-until/blob/master/dist/next-wait-until.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-wait-until
[download-url]: https://www.npmjs.com/package/@jswork/next-wait-until