An implementation trait for parallel tasks based on the fork/join framework.
An implementation trait for parallel tasks based on the fork/join framework.
- Companion
- object
Type members
Classlikes
Inherited classlikes
Value members
Concrete methods
Executes a task and does not wait for it to finish - instead returns a future.
Executes a task and does not wait for it to finish - instead returns a future.
If the current thread is a fork/join worker thread, the task's fork
method will
be invoked. Otherwise, the task will be executed on the fork/join pool.
Executes a task on a fork/join pool and waits for it to finish. Returns its result when it does.
Executes a task on a fork/join pool and waits for it to finish. Returns its result when it does.
If the current thread is a fork/join worker thread, the task's fork
method will
be invoked. Otherwise, the task will be executed on the fork/join pool.
- Returns
the result of the task