hyperium / h3

MIT License
595 stars 76 forks source link

use async fn in traits in `SendStream` #235

Open Ruben2424 opened 6 months ago

Ruben2424 commented 6 months ago

at the moment there are two trait functions to send data.

This PR uses the async fn in traits feature to introduce the async fn send_data function in the SendStream trait.

Advantages:

Disadvantages

Open:

Is it worth exploring this approach?