Sibbo@sopuli.xyz to Rust Programming@lemmy.ml · 1 year agoWhy you might actually want async in your projectnotgull.netexternal-linkmessage-square10fedilinkarrow-up140arrow-down11cross-posted to: [email protected][email protected]
arrow-up139arrow-down1external-linkWhy you might actually want async in your projectnotgull.netSibbo@sopuli.xyz to Rust Programming@lemmy.ml · 1 year agomessage-square10fedilinkcross-posted to: [email protected][email protected]
minus-squarewords_number@programming.devlinkfedilinkarrow-up2·1 year agoIt’s actually not that hard to use async libraries in sync context. I rarely need that but if I do, I just pull in an executor and write a little extension trait for futures that lets me call .block() instead of .await.
It’s actually not that hard to use async libraries in sync context. I rarely need that but if I do, I just pull in an executor and write a little extension trait for futures that lets me call .block() instead of .await.