# Rust Async Book Authors - Async and Await (Highlights) ![rw-book-cover|256](https://readwise-assets.s3.amazonaws.com/static/images/article0.00998d930354.png) ## Metadata **Cover**:: https://readwise-assets.s3.amazonaws.com/static/images/article0.00998d930354.png **Source**:: #from/readwise **Zettel**:: #zettel/fleeting **Status**:: #x **Authors**:: [[Rust Async Book Authors]] **Full Title**:: Async and Await **Category**:: #articles #readwise/articles **Category Icon**:: 📰 **Document Tags**:: #async-programming #rust **URL**:: [rust-lang.github.io](https://rust-lang.github.io/async-book/03_async_await/01_chapter.html) **Host**:: [[rust-lang.github.io]] **Highlighted**:: [[2020-04-06]] **Created**:: [[2022-09-26]] ## Highlights - By moving the argument into the `async` block, we extend its lifetime to match that of the `Future` returned from the call to `good`. - Similarly, it isn't a good idea to hold a traditional non-futures-aware lock across an `.await`, as it can cause the threadpool to lock up