Files
tokio/tokio/examples
Jon Gjengset e3415d8d61 sync: Make Lock more similar to std::sync::Mutex (#1573)
This renames `Lock` to `Mutex`, and brings the API more in line with `std::sync::Mutex`.

In partcular, locking now only takes `&self`, with the expectation that you place the `Mutex` in an `Arc` (or something similar) to share it between threads.

Fixes #1544.
Part of #1210.
2019-09-19 11:46:52 -04:00
..
2019-08-30 20:46:07 -07:00

Examples of how to use Tokio

The master branch is currently being updated to use async / await. The examples are not fully ported. Examples for stable Tokio can be found here.