Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from upstream #66

Merged
merged 17 commits into from
Nov 7, 2021
Merged

Update from upstream #66

merged 17 commits into from
Nov 7, 2021

Conversation

huangjj27
Copy link
Owner

No description provided.

mikemorris and others added 17 commits August 1, 2021 11:09
To avoid breaking implicit project naming assumptions when referencing timer_future::TimerFuture from main.rs in next section.
add instructions to create project as timer_future
The original wording seemed to imply "`T` won't be moved *only* if `T: !Unpin`" upon first impression.
The instructions didn't mention which file to edit to add the dependency. Further, since the previous section (https://github.com/rust-lang/async-book/blob/master/src/02_execution/03_wakeups.md) used `cargo new timer_future` to create the project, we know the package name is `timer_future`.
The current `cargo new timer_future` command generates `src/main.rs`, not `src/lib.rs` mentioned later.
@huangjj27 huangjj27 merged commit db6f682 into huangjj27:master Nov 7, 2021
huangjj27 pushed a commit that referenced this pull request Jun 25, 2022
I wanted to write an example to help guide people new to asynchronous programming, with fewer external dependencies (as some people requested in #66). The example starts with the [single threaded TCP server from the Rust book](https://doc.rust-lang.org/book/ch20-01-single-threaded.html) and uses async functionality to add concurrency.
The example goes through:
- some examples of blocking code and how to make them non blocking (should address #64 as well)
- spawning tasks vs using combinators to run them concurrently on a single thread
- testing code by creating mocks and implementing async read/write traits for the mocks
huangjj27 pushed a commit that referenced this pull request Jul 9, 2022
I wanted to write an example to help guide people new to asynchronous programming, with fewer external dependencies (as some people requested in #66). The example starts with the [single threaded TCP server from the Rust book](https://doc.rust-lang.org/book/ch20-01-single-threaded.html) and uses async functionality to add concurrency.
The example goes through:
- some examples of blocking code and how to make them non blocking (should address #64 as well)
- spawning tasks vs using combinators to run them concurrently on a single thread
- testing code by creating mocks and implementing async read/write traits for the mocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants