From d90fa95266bc9864d2dec0248fa4bae5c7e5b6ec Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Sat, 22 Apr 2023 18:25:00 +0200 Subject: Add some more --- book/en/src/migration/migration_v2/monotonics.md | 2 +- book/en/src/migration/migration_v2/rtic-sync.md | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'book/en/src/migration/migration_v2') diff --git a/book/en/src/migration/migration_v2/monotonics.md b/book/en/src/migration/migration_v2/monotonics.md index f794bec..7427408 100644 --- a/book/en/src/migration/migration_v2/monotonics.md +++ b/book/en/src/migration/migration_v2/monotonics.md @@ -8,4 +8,4 @@ The `#[monotonic]` attribute is no longer used. Instead, you use a `create_X_tok Check out the [code example](./complete_example.md) for an overview of the required changes. -For more information on current monotonic implementations, see [the `rtic-monotonics` documentation](https://docs.rs/rtic-monotonics). \ No newline at end of file +For more information on current monotonic implementations, see [the `rtic-monotonics` documentation](https://docs.rs/rtic-monotonics), and [the examples](https://github.com/rtic-rs/rtic/tree/master/examples). \ No newline at end of file diff --git a/book/en/src/migration/migration_v2/rtic-sync.md b/book/en/src/migration/migration_v2/rtic-sync.md index d086d5d..fefde03 100644 --- a/book/en/src/migration/migration_v2/rtic-sync.md +++ b/book/en/src/migration/migration_v2/rtic-sync.md @@ -1 +1,9 @@ -# Using `rtic-sync` \ No newline at end of file +# Using `rtic-sync` + +`rtic-sync` provides primitives that can be used for message passing and resource sharing in async context. + +The important structs are: +* The `Arbiter`, which allows you to await access to a shared resource in async contexts without using `lock`. +* `Channel`, which allows you to communicate between tasks (both `async` and non-`async`). + +For more information on these structs, see the [`rtic-sync` docs](https://docs.rs/rtic-sync) \ No newline at end of file -- cgit v1.2.3