Skip to content

Commit faddeb9

Browse files
authored
Update README.md
1 parent ac04004 commit faddeb9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎async/completablefuture/README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# CompletableFuture
22

3-
## Blocking
3+
## The get method
44

5-
The `get` method blocks the `main` thread until the asynchronous task
6-
finishes (i.e., until the 3-second sleep ends).
5+
The `get` method waits if necessary for a future to complete, and then returns its result.
76

87
The execution flow is:
98

@@ -56,7 +55,8 @@ public class RunBlocking {
5655
}
5756
}
5857
```
59-
58+
The `get` method blocks the `main` thread until the asynchronous task
59+
finishes (i.e., until the 3-second sleep ends).
6060

6161
## Async addition
6262

0 commit comments

Comments
 (0)