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 usinglock. Channel, which allows you to communicate between tasks (bothasyncand non-async).
For more information on these structs, see the rtic-sync docs