Merge pull request #1763 from rubdos/sender-receiver-with-ctx

Refactor Channel/Sender/Receiver poll methods
This commit is contained in:
Dario Nieuwenhuis
2023-08-22 21:25:29 +00:00
committed by GitHub
14 changed files with 160 additions and 83 deletions

View File

@ -44,7 +44,7 @@ async fn main(spawner: Spawner) -> ! {
unwrap!(spawner.spawn(reader(rx)));
loop {
let buf = CHANNEL.recv().await;
let buf = CHANNEL.receive().await;
info!("writing...");
unwrap!(tx.write(&buf).await);
}