mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 23:34:49 +01:00
feat: Controller::send is now async
needed because we want this to be acked, no longer a "fire and forget" action Co-authored-by: cschen <cschen@codemp.dev>
This commit is contained in:
parent
ef9da1740a
commit
3346f1c526
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ pub trait Controller<T : Sized + Send + Sync> : Sized + Send + Sync {
|
||||||
///
|
///
|
||||||
/// success or failure of this function does not imply validity of sent operation,
|
/// success or failure of this function does not imply validity of sent operation,
|
||||||
/// because it's integrated asynchronously on the background worker
|
/// because it's integrated asynchronously on the background worker
|
||||||
fn send(&self, x: T) -> Result<()>;
|
async fn send(&self, x: T) -> Result<()>;
|
||||||
|
|
||||||
/// get next value from other users, blocking until one is available
|
/// get next value from other users, blocking until one is available
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue