zlacker

[return to "The bane of my existence: Supporting both async and sync code in Rust"]
1. Laaas+Hf[view] [source] 2024-01-19 23:25:54
>>lukast+(OP)
Make two crates? rspotify-sync, rspotify-async?

Couldn't you perhaps make an async runtime that isn't async and just blocks? That would let you keep only the async interface.

◧◩
2. martin+si[view] [source] 2024-01-19 23:43:05
>>Laaas+Hf
It's very obvious you did not read the article. This is literally covered.
[go to top]