84 |
|
|
85 |
|
/** |
86 |
|
* Creates a new action with the given parent. If the parent is |
87 |
< |
* non-null, this tasks registers with the parent, in which case, |
87 |
> |
* non-null, this task registers with the parent, in which case, |
88 |
|
* the parent task cannot complete until this task completes. |
89 |
|
* @param parent the parent task, or null if none |
90 |
|
*/ |
97 |
|
/** |
98 |
|
* Creates a new action with the given parent, optionally |
99 |
|
* registering with the parent. If the parent is non-null and |
100 |
< |
* <tt>register</tt> is true, this tasks registers with the |
100 |
> |
* <tt>register</tt> is true, this task registers with the |
101 |
|
* parent, in which case, the parent task cannot complete until |
102 |
|
* this task completes. |
103 |
|
* @param parent the parent task, or null if none |
114 |
|
* Creates a new action with the given parent, optionally |
115 |
|
* registering with the parent, and setting the pending join count |
116 |
|
* to the given value. If the parent is non-null and |
117 |
< |
* <tt>register</tt> is true, this tasks registers with the |
117 |
> |
* <tt>register</tt> is true, this task registers with the |
118 |
|
* parent, in which case, the parent task cannot complete until |
119 |
|
* this task completes. Setting the pending join count requires |
120 |
|
* care -- it is correct only if child tasks do not themselves |
157 |
|
* default version of this method does nothing and returns |
158 |
|
* <tt>true</tt>. |
159 |
|
* @return true if this task's exception should be propagated to |
160 |
< |
* this tasks parent. |
160 |
> |
* this task's parent. |
161 |
|
*/ |
162 |
|
protected boolean onException() { |
163 |
|
return true; |
177 |
|
* Completes this task. If the pending subtask completion count is |
178 |
|
* zero, invokes <tt>onCompletion</tt>, then causes this task to |
179 |
|
* be joinable (<tt>isDone</tt> becomes true), and then |
180 |
< |
* recursively applies to this tasks's parent, if it exists. If an |
180 |
> |
* recursively applies to this task's parent, if it exists. If an |
181 |
|
* exception is encountered in any <tt>onCompletion</tt> |
182 |
|
* invocation, that task and its ancestors |
183 |
|
* <tt>completeExceptionally</tt>. |