An open API service indexing awesome lists of open source software.

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

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