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

Make simple examples, without external dependencies #66

Open
jcbritobr opened this issue Dec 3, 2019 · 2 comments
Open

Make simple examples, without external dependencies #66

jcbritobr opened this issue Dec 3, 2019 · 2 comments

Comments

@jcbritobr
Copy link

jcbritobr commented Dec 3, 2019

This book has a lot of complex examples. Its dificult to understand the code proprosal. Please, make simple examples available at the beginning.

@andradei
Copy link

andradei commented Jan 2, 2020

Especially when the dependencies keep changing their APIs fast towards stability.

@cannero
Copy link

cannero commented Feb 9, 2020

Which examples do you think could be used?
Maybe I'm totally wrong as I'm only a beginner in async rust, but I believe that the problem is that only the Future trait is in std. For an executor a crate like futures, async-std or tokio has to be used.

tmandry pushed a commit that referenced this issue Sep 16, 2020
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 referenced this issue in huangjj27/async-book Jan 1, 2021
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

No branches or pull requests

3 participants