Commit Graph

7 Commits

Author SHA1 Message Date
Divin Kong e6b6c1e01e Fix a typo in async/.await chapter 2021-02-11 18:22:08 +09:00
Lee Bernick 87015e2183
More beginner-friendly TCP server example (#102)
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
2020-09-16 16:00:12 -07:00
funkill2 d7651bb1cd fixed editions and ignoring 2020-03-09 14:47:15 -07:00
Lars Christensen 7aba2abd35 Change reference to function to correctly match example 2019-09-05 16:42:58 -07:00
Lars Christensen 7e0213f7f7 Fix function name to match example 2019-09-05 16:42:58 -07:00
Taylor Cramer 64e93ffb85 Update mdbook and use ANCHOR for code includes 2019-07-24 10:04:17 -07:00
Taylor Cramer 44c8f61abc Update examples and move into cargo projects
This allows us to test examples and confirm that they
are both correct and that they continue to work in
spite of upstream changes.
2019-06-13 17:18:07 -07:00