Home | History | Annotate | Download | only in concurrent

Lines Matching refs:COMPLETED

43  * completed, failed, or cancelled.  Because this class does not implement
97 * {@link AbstractFuture.Sync#COMPLETED} and call {@link #done()} if the
114 * {@link AbstractFuture.Sync#COMPLETED} and call {@link #done()} if the
155 * the task has completed.
167 * {@link #COMPLETED} or {@link #CANCELLED}.
172 * computation, and only then transition to COMPLETED or CANCELLED.
184 static final int COMPLETED = 2;
230 * was cancelled, or a {@link ExecutionException} if the task completed with
249 case COMPLETED:
266 * Checks if the state is {@link #COMPLETED} or {@link #CANCELLED}.
269 return (getState() & (COMPLETED | CANCELLED)) != 0;
280 * Transition to the COMPLETED state and set the value.
283 return complete(v, null, COMPLETED);
287 * Transition to the COMPLETED state and set the exception.
290 return complete(null, t, COMPLETED);