Skip to content

Commit

Permalink
Add hidden async wrapper function
Browse files Browse the repository at this point in the history
  • Loading branch information
brendano257 committed Aug 3, 2024
1 parent 540cbe4 commit 1798186
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
///
Expand All @@ -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<R>(
request: R,
Expand Down

0 comments on commit 1798186

Please sign in to comment.