From 649523f93fe3147fd409a9a273e294010e19513e Mon Sep 17 00:00:00 2001 From: Alex van de Sandt Date: Thu, 7 Nov 2019 22:45:21 -0500 Subject: [PATCH] Move `async` and `await` keywords to 'Currently in Use' In Appendix A, these keywords were previously in the list of those reserved for future use. As of Rust 1.39, async/.await is now stabilized. The descriptions are directly taken from the keyword documentation at the time of writing. --- src/appendix-01-keywords.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/appendix-01-keywords.md b/src/appendix-01-keywords.md index 6a129e2903..ef1c51d571 100644 --- a/src/appendix-01-keywords.md +++ b/src/appendix-01-keywords.md @@ -15,6 +15,8 @@ The following keywords currently have the functionality described. * `as` - perform primitive casting, disambiguate the specific trait containing an item, or rename items in `use` and `extern crate` statements +* `async` - return a `Future` instead of blocking the current thread +* `await` - suspend execution until the result of a `Future` is ready * `break` - exit a loop immediately * `const` - define constant items or constant raw pointers * `continue` - continue to the next loop iteration @@ -59,8 +61,6 @@ The following keywords do not have any functionality but are reserved by Rust for potential future use. * `abstract` -* `async` -* `await` * `become` * `box` * `do`