Utility classes commonly useful in concurrent programming.
-
If this task's pending count is zero, returns this task;
otherwise decrements its pending count and returns null
.
Returns the completer established in this task's constructor,
or null
if none.
Returns the root of the current computation; i.e., this
task if it has no completer, else its completer's root.
void
Performs an action when method
tryComplete()
is invoked
and the pending count is zero, or when the unconditional
method
complete(T)
is invoked.
boolean
protected
Creates a new CountedCompleter with the given completer
and an initial pending count of zero.
protected
Creates a new CountedCompleter with the given completer
and initial pending count.