Skip to content

Commit 2acbff0

Browse files
committed
Improve comment
1 parent 77453dc commit 2acbff0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

concurrency/src/main/java/io/mincong/concurrency/completablefuture/BlockingThreadDemo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public class BlockingThreadDemo {
3333
* </pre>
3434
*
3535
* The "main" thread finished around 20:40:38.3 while the "Thread-0" finished around 20:40:40.1.
36-
* The two seconds delay was caused by the scheduler, which schedule the completion of the future
37-
* 2 seconds in the future. From this demo, we can see that where the main thread was not blocked
38-
* by the completable future. Only the worker thread "Thread-0" was blocked.
36+
* The two seconds delay was caused by the scheduler, which scheduled the completion of the
37+
* worker-future 2 seconds in the future. From this demo, we can see that the main thread was not
38+
* blocked by the completable future. Only the worker thread "Thread-0" was blocked.
3939
*/
4040
public static void main(String[] args) {
4141
var workerFuture = new CompletableFuture<String>();

0 commit comments

Comments
 (0)