Leverage new AsyncFn traits in stream module
This commit is contained in:
parent
c12beecd38
commit
0f9934b1a7
2 changed files with 7 additions and 13 deletions
|
|
@ -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);
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue