Returns a new
ForkJoinTask
that performs the
run
method of the given
Runnable
as its action, and returns
a null result upon
join()
.
Returns a new
ForkJoinTask
that performs the
run
method of the given
Runnable
as its action, and returns
the given result upon
join()
.
Returns a new
ForkJoinTask
that performs the
call
method of the given
Callable
as its action, and returns
its result upon
join()
, translating any checked exceptions
encountered into
RuntimeException
.
Returns a new
ForkJoinTask
that performs the
run
method of the given
Runnable
as its action, and
returns null upon
join()
, translating any checked
exceptions encountered into
RuntimeException
.
Returns a new
ForkJoinTask
that performs the
run
method of the given
Runnable
as its action, and returns
the given result upon
join()
, translating any checked exceptions
encountered into
RuntimeException
.
Returns a new
ForkJoinTask
that performs the
call
method of the given
Callable
as its action, and returns
its result upon
join()
, translating any checked exceptions
encountered into
RuntimeException
.
Submits the given task as if submitted from a non-ForkJoinTask
client.
Submits the given task without guaranteeing that it will
eventually execute in the absence of available active threads.
Returns, but does not unschedule or execute, a task queued by
the current thread but not yet executed, if one is immediately
available.
Unschedules and returns, without executing, the next task
queued by the current thread but not yet executed, if the
current thread is operating in a ForkJoinPool.
Removes and returns the next unexecuted submission if one is
available.
If the current thread is operating in a ForkJoinPool,
unschedules and returns, without executing, a task externally
submitted to the pool, if one is available.
If the current thread is operating in a ForkJoinPool,
unschedules and returns, without executing, the next task
queued by the current thread but not yet executed, if one is
available, or if not available, a task that was forked by some
other thread, if available.
Submits a ForkJoinTask for execution.
void
Arranges for (asynchronous) execution of the given task.
Submits the given task as if submitted from a non-ForkJoinTask
client.
<T> T
Performs the given task, returning its result upon completion.
static void
Forks the given tasks, returning when isDone
holds for
each task or an (unchecked) exception is encountered, in which
case the exception is rethrown.
static void
Forks the given tasks, returning when isDone
holds for
each task or an (unchecked) exception is encountered, in which
case the exception is rethrown.
Submits the given task without guaranteeing that it will
eventually execute in the absence of available active threads.
Submits a ForkJoinTask for execution.