1.0.0 • Published 1 year ago
abortable-sleep v1.0.0
abortable-sleep
The abortable-sleep is an NPM package that gives you access to awaiatable sleep function with abort signal support.
Installation
To install the package, use the following command in your project:
npm install abortable-sleepExample
const abortController = new AbortController();
await sleep(1000, abortController.signal);1.0.0
1 year ago