https://github.com/dalisoft/pending-task
A pending task scheduler for complex apps
https://github.com/dalisoft/pending-task
Last synced: about 1 year ago
JSON representation
A pending task scheduler for complex apps
- Host: GitHub
- URL: https://github.com/dalisoft/pending-task
- Owner: dalisoft
- License: mit
- Created: 2023-01-03T10:18:17.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T10:30:58.000Z (over 3 years ago)
- Last Synced: 2025-02-09T04:43:11.568Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pending-task
A pending task scheduler for complex apps
## Features
- Zero-dependency
- Secure
- Async/Promise support
- Condition support
- Throttle support
- Good performance
## Installation
```sh
yarn add pending-task@dalisoft/pending-task
```
## Usage
```js
import pending from "pending-task";
app.get("/is_verified", async (req, res) => {
await pending(
() => res.json({ verified: true }),
async () => UserController.isVerified()
);
});
```
## License
MIT