File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
concurrency/src/main/java/io/mincong/concurrency/completablefuture Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 >();
You can’t perform that action at this time.
0 commit comments