You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we implement something like this for Ref under async or RefNotSend feature?
Use case:
asyncfnfast_computation(data:&str){
tokio::time::sleep(Duration::from_secs(1)).await;drop(data);}asyncfntest(map:&DashMap<String,String>,data:&str){let value = match map.get(data){None => {
tokio::time::sleep(Duration::from_secs(10)).await;// some heavy computation}Some(a) => fast_computation(a.value()).await,// deadlocks here};}
If Ref was not Send, then this won't compile.
The text was updated successfully, but these errors were encountered:
Can we implement something like this for Ref under async or RefNotSend feature?
Use case:
If
Ref
was notSend
, then this won't compile.The text was updated successfully, but these errors were encountered: