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/stm32l5/src/bin/usb_ethernet.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/stm32l5/src/bin/usb_ethernet.rs')
| -rw-r--r-- | examples/stm32l5/src/bin/usb_ethernet.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32l5/src/bin/usb_ethernet.rs b/examples/stm32l5/src/bin/usb_ethernet.rs index fa445eece..526b27530 100644 --- a/examples/stm32l5/src/bin/usb_ethernet.rs +++ b/examples/stm32l5/src/bin/usb_ethernet.rs | |||
| @@ -8,7 +8,7 @@ use core::task::Waker; | |||
| 8 | use defmt::*; | 8 | use defmt::*; |
| 9 | use defmt_rtt as _; // global logger | 9 | use defmt_rtt as _; // global logger |
| 10 | use embassy::blocking_mutex::raw::ThreadModeRawMutex; | 10 | use embassy::blocking_mutex::raw::ThreadModeRawMutex; |
| 11 | use embassy::channel::Channel; | 11 | use embassy::channel::mpmc::Channel; |
| 12 | use embassy::executor::Spawner; | 12 | use embassy::executor::Spawner; |
| 13 | use embassy::util::Forever; | 13 | use embassy::util::Forever; |
| 14 | use embassy_net::tcp::TcpSocket; | 14 | use embassy_net::tcp::TcpSocket; |
