From 796c5753a54b7375b6a9e0484460032885206d34 Mon Sep 17 00:00:00 2001 From: WILLIAMS Harvey <hwilliam@inria.fr> Date: Tue, 6 May 2025 16:01:15 +0200 Subject: [PATCH] Revert "Little bit of rewording" This reverts commit 82de59024362fec0473a6bab1934608e254183a8. --- README.md | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8300707..5b51e6a 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,6 @@ This repository might be helpful for you! # Prerequisites -- Some basic understanding of writing async rust code. Although you can still write your application code in a synchronous manner, we opt to use it here to simplify the handling of network events. +- Some basic understanding of writing async rust code. Alhough you can opt to write your application code in a synchronous manner, we opt to use it here to handle events. -- A familiarity with the actor model/pattern of writing async code (see [here](https://ryhl.io/blog/actors-with-tokio/) for a good starting point). \ No newline at end of file +- A familiarity with the actor model/pattern of writing async code. \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 9232eac..962139a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,6 +8,6 @@ pub trait Network { /// Send a message to the identifier specified by the 'to' field. fn send(&mut self, to: &str, message: Vec<u8>); - /// Generate one or more receivers to catch inbound messages. + /// Wait for a message to be received async fn recv(&mut self) -> mpsc::Receiver<(String, Vec<u8>)>; } \ No newline at end of file -- GitLab