Skip to content

Commit 099b2a6

Browse files
committed
2 parents 308e840 + 08af20a commit 099b2a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Promise<?> p2 = p1.thenRunAsync(myAction);
5353
...
5454
p1.cancel(true);
5555
```
56-
In the example above `myConsumer` will be interrupted if already in progress. Both `p1` and `p2` will be resolved faulty with [CancellationException](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CancellationException.html).
56+
In the example above `myConsumer` will be interrupted if already in progress. Both `p1` and `p2` will be resolved faulty: `p1` with [CancellationException](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CancellationException.html) and `p2` with [CompletionException](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionException.html).
5757

5858
b. `CompletableTask.complete(T value, Executor executor)`
5959

0 commit comments

Comments
 (0)