zlacker

[return to "The bane of my existence: Supporting both async and sync code in Rust"]
1. doakes+nq[view] [source] 2024-01-20 00:52:30
>>lukast+(OP)
What's the advantage of async if you immediately call await?
◧◩
2. maleld+3r[view] [source] 2024-01-20 00:58:47
>>doakes+nq
From the library perspective, they're yielding control to the runtime. This means the user can do whatever they want with the future.
[go to top]