Open Diggsey opened 3 years ago
http-types currently only has an optional dependency on async-std for the file system stuff. for channels, it uses async-channel on main currently: https://github.com/http-rs/http-types/blob/main/Cargo.toml#L32
Ah yes, though the benefits I mentioned of using a oneshot channel still apply.
There are a couple of places where a one-time channel is needed:
Currently these wrap the channel from async_std, but it would simplify things if they wrapped
oneshot::channel
from futures (or other similar channel) instead, as that channel offers the following benefits:Since this is a breaking change to the signature of
send
, it should be done for the next major release.