8338398: Trivially fix grammar and typos
Reviewed-by: aivanov
This commit is contained in:
parent
5022109b2a
commit
07352c6744
@ -2805,7 +2805,7 @@ public class CompletableFuture<T> implements Future<T>, CompletionStage<T> {
|
||||
/**
|
||||
* Exceptionally completes this CompletableFuture with
|
||||
* a {@link TimeoutException} if not otherwise completed
|
||||
* before the given timeout.
|
||||
* before the given timeout elapsed.
|
||||
*
|
||||
* @param timeout how long to wait before completing exceptionally
|
||||
* with a TimeoutException, in units of {@code unit}
|
||||
@ -2825,7 +2825,7 @@ public class CompletableFuture<T> implements Future<T>, CompletionStage<T> {
|
||||
|
||||
/**
|
||||
* Completes this CompletableFuture with the given value if not
|
||||
* otherwise completed before the given timeout.
|
||||
* otherwise completed before the given timeout elapsed.
|
||||
*
|
||||
* @param value the value to use upon timeout
|
||||
* @param timeout how long to wait before completing normally
|
||||
|
@ -670,7 +670,7 @@ public class ForkJoinPool extends AbstractExecutorService {
|
||||
* period given by field keepAlive (default 60sec), which applies
|
||||
* to the first timeout of a quiescent pool. Subsequent cases use
|
||||
* minimal delays such that, if still quiescent, all will be
|
||||
* released soon therafter. This is checked by setting the
|
||||
* released soon thereafter. This is checked by setting the
|
||||
* "source" field of signallee to an invalid value, that will
|
||||
* remain invalid only if it did not process any tasks.
|
||||
*
|
||||
@ -855,7 +855,7 @@ public class ForkJoinPool extends AbstractExecutorService {
|
||||
* non-workers (which comply with Future.get() specs). Internal
|
||||
* usages of ForkJoinTasks ignore interrupt status when executing
|
||||
* or awaiting completion. Otherwise, reporting task results or
|
||||
* exceptions is preferred to throwing InterruptedExecptions,
|
||||
* exceptions is preferred to throwing InterruptedExceptions,
|
||||
* which are in turn preferred to timeouts. Similarly, completion
|
||||
* status is preferred to reporting cancellation. Cancellation is
|
||||
* reported as an unchecked exception by join(), and by worker
|
||||
|
@ -1072,7 +1072,7 @@ public abstract class ForkJoinTask<V> implements Future<V>, Serializable {
|
||||
|
||||
/**
|
||||
* Tries to join this task, returning true if it completed
|
||||
* (possibly exceptionally) before the given timeout and
|
||||
* (possibly exceptionally) before the given timeout elapsed and
|
||||
* the current thread has not been interrupted.
|
||||
*
|
||||
* @param timeout the maximum time to wait
|
||||
@ -1097,7 +1097,7 @@ public abstract class ForkJoinTask<V> implements Future<V>, Serializable {
|
||||
|
||||
/**
|
||||
* Tries to join this task, returning true if it completed
|
||||
* (possibly exceptionally) before the given timeout.
|
||||
* (possibly exceptionally) before the given timeout elapsed.
|
||||
*
|
||||
* @param timeout the maximum time to wait
|
||||
* @param unit the time unit of the timeout argument
|
||||
|
Loading…
Reference in New Issue
Block a user