3 ms·
I think it goes to show that the vast majority of Rust devs don't actually care about this problem, otherwise they'd be doing that already. Like, providing a sy
by insanitybit 3y ago
I think it goes to show that the vast majority of Rust devs don't actually care about this problem, otherwise they'd be doing that already. Like, providing a sync API over an async API is almost always as simple as:
struct SyncThing {
async_version: AsyncThing
}
impl SyncThing {
pub fn sync_api(&self) {
block_on(self.async_version.sync_api)
}
}
If this were really such a huge problem I think we'd see more PRs. I get that there's some survivorship bias here, but still...