Future.java: Fix typos in Javadoc (#9391)
Motivation: Docs should have no typos Modifications: Fix a few typos Result: More correct docs.
This commit is contained in:
parent
d6c05e9b31
commit
eef72b022a
@ -164,14 +164,14 @@ public interface Future<V> extends java.util.concurrent.Future<V> {
|
|||||||
* Return the result without blocking. If the future is not done yet this will return {@code null}.
|
* Return the result without blocking. If the future is not done yet this will return {@code null}.
|
||||||
*
|
*
|
||||||
* As it is possible that a {@code null} value is used to mark the future as successful you also need to check
|
* As it is possible that a {@code null} value is used to mark the future as successful you also need to check
|
||||||
* if the future is really done with {@link #isDone()} and not relay on the returned {@code null} value.
|
* if the future is really done with {@link #isDone()} and not rely on the returned {@code null} value.
|
||||||
*/
|
*/
|
||||||
V getNow();
|
V getNow();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
* If the cancellation was successful it will fail the future with an {@link CancellationException}.
|
* If the cancellation was successful it will fail the future with a {@link CancellationException}.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
boolean cancel(boolean mayInterruptIfRunning);
|
boolean cancel(boolean mayInterruptIfRunning);
|
||||||
|
Loading…
Reference in New Issue
Block a user