From e33b15af8bcb5da5579f5f41666233de9f68b455 Mon Sep 17 00:00:00 2001 From: Carl Fredrik Samson Date: Tue, 22 Dec 2020 19:55:00 +0100 Subject: [PATCH] formulations, spelling and title chapter 3 --- src/2_a_mental_model_for_futures.md | 18 +++++++++++------- src/SUMMARY.md | 2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/2_a_mental_model_for_futures.md b/src/2_a_mental_model_for_futures.md index 2ea6d43..2da0907 100644 --- a/src/2_a_mental_model_for_futures.md +++ b/src/2_a_mental_model_for_futures.md @@ -1,11 +1,15 @@ -# Get a mental model of how Futures and runtimes work +# A mental model of how Futures and runtimes work -In this chapter we'll try to build a high level mental model of how Futures and -runtimes work together. Just note that the code itself is "pseudo-rust" due to space -restrictions and clarity. The main goal in this part is to create a high level -understanding to make it easier to learn. This is not the only way to model this -since we're making assumtions on runtime specifics that can vary a great deal, -but it's the way I found it easiest to build upon. +The main goal in this part is to build a high level +mental model of how the different pieces we read about in the previos chapter +works toghether. I hope this will make it easier to understand what we just read +about in the previous chapter and also explain why we take a deep dive into topics +like trait objects and generators in the next few chapters. + +This is not the only way to model this since we're making assumtions on runtime +specifics that can vary a great deal, but it's the way I found it easiest to +build upon. Finally, please note that the code itself is "pseudo-rust" due to +the need for brevity and clarity. >Click on a page to open a larger view of it in a new tab. > diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 10b9236..b7eb1ed 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -4,7 +4,7 @@ - [Background information](./0_background_information.md) - [Futures in Rust](./1_futures_in_rust.md) -- [A mental model for Futures](./2_a_mental_model_for_futures.md) +- [A mental model of how Futures work](./2_a_mental_model_for_futures.md) - [Waker and Context](./3_waker_context.md) - [Generators and async/await](./4_generators_async_await.md) - [Pin](./5_pin.md)