From c8b4da5d977f3d25ec9d584de67d225128df3052 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Fri, 17 Jan 2025 09:51:15 -0700 Subject: [PATCH] Ch. 17 (NoStarch edits): rename the chapter --- src/SUMMARY.md | 2 +- src/ch17-00-async-await.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SUMMARY.md b/src/SUMMARY.md index d7d49a50f8..5a83bd0b00 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -101,7 +101,7 @@ - [Shared-State Concurrency](ch16-03-shared-state.md) - [Extensible Concurrency with the `Sync` and `Send` Traits](ch16-04-extensible-concurrency-sync-and-send.md) -- [Async and Await](ch17-00-async-await.md) +- [Fundamentals of Asynchronous Programming: Async, Await, Futures, and Streams](ch17-00-async-await.md) - [Futures and the Async Syntax](ch17-01-futures-and-syntax.md) - [Applying Concurrency with Async](ch17-02-concurrency-with-async.md) - [Working With Any Number of Futures](ch17-03-more-futures.md) diff --git a/src/ch17-00-async-await.md b/src/ch17-00-async-await.md index ffe77fd567..7264c3448c 100644 --- a/src/ch17-00-async-await.md +++ b/src/ch17-00-async-await.md @@ -1,8 +1,8 @@ -# Async and Await +# Fundamentals of Asynchronous Programming: Async, Await, Futures, and Streams Many operations we ask the computer to do can take a while to finish. It would be nice if we could do something else while we are waiting for those -long-running processes to complete. +long-running processes to complete. TODO. Operating systems often provide threading for parallelism and concurrency, as we covered in Chapter 16. This chapter will build on that discussion by showing an alternative to threads that works in cases where threads may not: Rust’s async and await. Let’s consider an example. Say you’re exporting a video you’ve created of a family celebration, an operation that could take anywhere from minutes to hours.