net.sf.asyncobjects.asyncscala.control.tasks
Execute code that invokes external resources.
Execute code that invokes external resources. The method notifies task tree, that the task will temporary stop being active in task tree, so it is possible to schedule other tasks until this task will resume.
the action that requires interaction with external resources
a promise that resolves when body finishes and when a new task slot is available
Start constructing the task fork.
Start constructing the task fork. Note that bodies are executed with task argument different from the current task and while bodies are executed, it is not possible to for
the first body of the fork
the fork constructor
Start forkFor creation
Start forkFor creation
the collection of items
the body that translates individual items
the builder that allows specifying a folding rule
Ensure that all branches are executed
Ensure that all branches are executed
the collection of items
the body that translates individual items
a promise that resolves when iteration finishes
The task context. It is used by the user for scheduling the subtasks. The context is available only for duration of the task execution, it is suspended until subtasks are not complete.
The subtasks have a different task contexts. And subtasks might be executed in different vats. So be careful with sharing objects between subtasks. Also until subtasks are finished, the current task is suspended and cannot create new subtasks.