We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e030e2 commit d529f10Copy full SHA for d529f10
src/native/streaming.rs
@@ -50,6 +50,7 @@
50
51
use std::{
52
collections::VecDeque,
53
+ future::poll_fn,
54
pin::Pin,
55
sync::Arc,
56
task::{ready, Context, Poll},
@@ -192,6 +193,11 @@ where
192
193
}
194
195
196
+ /// Asynchronously retrieves the next frame from the WebSocket stream.
197
+ pub async fn next_frame(&mut self) -> Result<Frame> {
198
+ poll_fn(|cx| self.poll_next_frame(cx)).await
199
+ }
200
+
201
/// Splits the `Streaming` connection into its low-level components for advanced usage.
202
///
203
/// This method provides access to the underlying framed stream and read/write halves,
0 commit comments