Sibbo@sopuli.xyz to Rust Programming@lemmy.ml · 1 year agoWhy you might actually want async in your projectnotgull.netexternal-linkmessage-square8fedilinkarrow-up139arrow-down11cross-posted to: [email protected][email protected][email protected][email protected]
arrow-up138arrow-down1external-linkWhy you might actually want async in your projectnotgull.netSibbo@sopuli.xyz to Rust Programming@lemmy.ml · 1 year agomessage-square8fedilinkcross-posted to: [email protected][email protected][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.