From 1798186a10c78f1c86ac9f49c62feae259461c9d Mon Sep 17 00:00:00 2001 From: Brendan Blanchard Date: Sat, 3 Aug 2024 14:53:22 -0400 Subject: [PATCH] Add hidden async wrapper function --- src/connect.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connect.rs b/src/connect.rs index 6ad999a0..7839c290 100644 --- a/src/connect.rs +++ b/src/connect.rs @@ -16,6 +16,7 @@ use crate::{domain, stream::MaybeTlsStream, Connector, IntoClientRequest, WebSoc /// complex uses. /// /// ```no_run +/// # async fn example() { /// use tungstenite::http::{Method, Request}; /// use tokio_tungstenite::connect_async; /// @@ -31,6 +32,7 @@ use crate::{domain, stream::MaybeTlsStream, Connector, IntoClientRequest, WebSoc /// .unwrap(); /// /// let (stream, response) = connect_async(request).await.unwrap(); +/// #} /// ``` pub async fn connect_async( request: R,