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. anonym+ig[view] [source] 2024-01-19 23:29:34
>>Laaas+Hf
that solves the whole problem except the part where the consumer of the library has to deal with async
[go to top]