diff options
| author | huntc <[email protected]> | 2022-06-12 15:16:56 +1000 |
|---|---|---|
| committer | huntc <[email protected]> | 2022-06-12 15:16:56 +1000 |
| commit | 99d19c7dcf077cdd06113bf013d6a458289b1ecb (patch) | |
| tree | 21344af53a0823f4949b25dbd2d9011ffe316f8a /examples/nrf/src/bin/uart_split.rs | |
| parent | db344c2bda55bd0352a43720788185cc4d3a420e (diff) | |
Rename channel to mpmc
I've renamed the channel module for the MPMC as mpmc. There was a previous debate about this, but I feel that the strategy here avoids importing `channel::channel`. The change leaves `signal::Signal`, but I think that's ok. It is all a bit subjective of course. The bottom line for me is that I really like the term mpmc - it means something to me and aligns with broader naming e.g. in Tokio.
Diffstat (limited to 'examples/nrf/src/bin/uart_split.rs')
| -rw-r--r-- | examples/nrf/src/bin/uart_split.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nrf/src/bin/uart_split.rs b/examples/nrf/src/bin/uart_split.rs index 3fde2f0d8..958cfeba0 100644 --- a/examples/nrf/src/bin/uart_split.rs +++ b/examples/nrf/src/bin/uart_split.rs | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | use defmt::*; | 5 | use defmt::*; |
| 6 | use embassy::blocking_mutex::raw::ThreadModeRawMutex; | 6 | use embassy::blocking_mutex::raw::ThreadModeRawMutex; |
| 7 | use embassy::channel::channel::Channel; | 7 | use embassy::channel::mpmc::Channel; |
| 8 | use embassy::executor::Spawner; | 8 | use embassy::executor::Spawner; |
| 9 | use embassy_nrf::peripherals::UARTE0; | 9 | use embassy_nrf::peripherals::UARTE0; |
| 10 | use embassy_nrf::uarte::UarteRx; | 10 | use embassy_nrf::uarte::UarteRx; |
