Using a2 crate with async-std executor crashes the application.
(this is my first impression because I run the same code in the examples/ but in an async-std environment, example works, mine doesn't)
client.send().await gives this error:
thread 'async-std/runtime' panicked at 'called `Option::unwrap()` on a `None` value', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-alpn-0.4.0/src/lib.rs:263:29
Is there a "really important" reason depending on tokio runtime? I think if this library become executor agnostic it would be more useful.
Maybe this crate can use surf instead of hyper which can be used both with tokio & async-std: https://crates.io/crates/surf
Using a2 crate with
async-std
executor crashes the application. (this is my first impression because I run the same code in the examples/ but in an async-std environment, example works, mine doesn't)client.send().await
gives this error:Is there a "really important" reason depending on tokio runtime? I think if this library become executor agnostic it would be more useful.
Maybe this crate can use
surf
instead ofhyper
which can be used both with tokio & async-std: https://crates.io/crates/surfThanks for this crate!