Tag: tasks

enhance

ac-apps-minimal-enhance-workers

enhance/workers.js

This module allows you to concurrently execute multiple asynchronous requests, making it ideal for handling long lists of tasks. You can create a list of tasks using the app.workers.task method, and then start them all at once using the app.workers.do method. The promise returned by this module will only be resolved once all of the tasks have been completed. This enables you to effectively manage and process large volumes of data in an efficient and timely manner.

Example:
app.workers.task(function() { /* task one */ }, "task-name");
app.workers.task(function() { /* task two */ }, "task-name");
app.workers.task(function() { /* task three */ }, "task-name");
await app.workers.do("task-name");

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Available Methods: start