A pending task scheduler for complex apps
- Zero-dependency
- Secure
- Async/Promise support
- Condition support
- Throttle support
- Good performance
yarn add pending-task@dalisoft/pending-task
import pending from "pending-task";
app.get("/is_verified", async (req, res) => {
await pending(
() => res.json({ verified: true }),
async () => UserController.isVerified()
);
});
MIT