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:
əlemi 2024-08-14 15:54:32 +02:00
parent ef9da1740a
commit 3346f1c526
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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,
/// 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
///