Make handshake an async fn; other cleanup

This commit is contained in:
Gurwinder Singh
2019-08-17 06:39:25 +05:30
committed by Sean McArthur
parent ad7ffa795f
commit b039ef25bc
4 changed files with 157 additions and 170 deletions

View File

@@ -267,7 +267,7 @@ impl<B: IntoBuf> SendStream<B> {
/// is sent. For example:
///
/// ```rust
/// #![feature(async_await)]
/// # #![feature(async_await)]
/// # use h2::*;
/// # async fn doc(mut send_stream: SendStream<&'static [u8]>) {
/// send_stream.reserve_capacity(100);
@@ -557,7 +557,7 @@ impl PingPong {
/// # Example
///
/// ```
/// #![feature(async_await)]
/// # #![feature(async_await)]
/// # async fn doc(mut ping_pong: h2::PingPong) {
/// // let mut ping_pong = ...
///