Skip to content

Commit 6903d20

Browse files
AfoHTkorken89
authored andcommitted
Book: Fix #1024 async closures stable since 1.85
1 parent f5cfcbb commit 6903d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/en/src/preface.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ So with the technical stuff out of the way, what does `async/await` bring to the
147147

148148
The answer is - improved ergonomics! A recurring use case is to have task perform a sequence of requests and then await their results in order to progress. Without `async`/`await` the programmer would be forced to split the task into individual sub-tasks and maintain some sort of state encoding (and manually progress by selecting sub-task). Using `async/await` each yield point (`await`) essentially represents a state, and the progression mechanism is built automatically for you at compile time by means of `Futures`.
149149

150-
Rust `async`/`await` support is still incomplete and/or under development (e.g., there are no stable way to express `async` closures, precluding use in iterator patterns). Nevertheless, Rust `async`/`await` is production ready and covers most common use cases.
150+
Rust `async`/`await` support is still incomplete and/or under development. Nevertheless, it covers most common use cases and can be considered production ready.
151151

152152
An important property is that futures are composable, thus you can await either, all, or any combination of possible futures (allowing e.g., timeouts and/or asynchronous errors to be promptly handled).
153153

0 commit comments

Comments
 (0)