Create a task and resolve it later via a Promise approach. Run time-consuming processes only once.
-
Updated
Apr 29, 2025 - TypeScript
Create a task and resolve it later via a Promise approach. Run time-consuming processes only once.
React.js hooks to manage async tasks.
A scheduler for one-time (non-periodic) asynchronous tasks, designed to manage delayed executions. It features status getters to communicate the execution state, a robust error handling mechanism for capturing uncaught errors, the ability to abort pending executions, and gracefully await the completion of ongoing tasks.
A modern `setInterval` substitute tailored for asynchronous tasks, ensuring non-overlapping executions by skipping attempts if a previous execution is still in progress. Features graceful teardown (ideal for production apps demanding smooth resource cleanup), execution status getters, and a fixed delay between runs.
Add a description, image, and links to the async-task topic page so that developers can more easily learn about it.
To associate your repository with the async-task topic, visit your repo's landing page and select "manage topics."