Leverage new AsyncFn traits in stream module

This commit is contained in:
Héctor Ramón Jiménez 2025-02-21 01:48:09 +01:00
parent c12beecd38
commit 0f9934b1a7
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 7 additions and 13 deletions

View file

@ -161,7 +161,7 @@ impl<T> Subscription<T> {
/// }
///
/// fn some_worker() -> impl Stream<Item = Event> {
/// stream::channel(100, |mut output| async move {
/// stream::channel(100, async |mut output| {
/// // Create channel
/// let (sender, mut receiver) = mpsc::channel(100);
///