zenoh icon indicating copy to clipboard operation
zenoh copied to clipboard

Runtime Agnostic

Open teburd opened this issue 3 years ago • 1 comments

SQLx managed to avoid locking themselves to tokio/async-std/smol or whatever seemingly by creating a small feature flag driven crate of about 200 loc.

It would be nice to avoid locking this directly to async-std, even if there is a compatibility layer.

https://github.com/launchbadge/sqlx/blob/master/sqlx-rt/src/lib.rs

teburd avatar May 12 '21 12:05 teburd

Thanks for the suggestion @bfrog we'll look into that. We did look closely into Tokio and the main reason for us to pick async-std was that the Sockets have inner mutability. In Tokio there is a split to separate reader and writer half, but the way in which lifetimes work makes it hard to use w/o adding a mutex...

kydos avatar Jun 23 '21 09:06 kydos

@Mallets I believe this can be closed with #566

teburd avatar Apr 03 '24 22:04 teburd