doc: mention futures-util in use_coroutine hook

This commit is contained in:
Miles Murgaw committed 2023-05-13 11:50:24 -04:00
1 parent 35cb6616af
commit d059b2bc05
1 file changed
+4
+4
View File
@@ -33,6 +33,10 @@ use std::future::Future;
/// However, you must plan out your own concurrency and synchronization. If you
/// don't care about actions in your app being synchronized, you can use [`use_callback`]
/// hook to spawn multiple tasks and run them concurrently.
///
/// ### Notice
/// In order to use ``rx.next().await``, you will need to extend the ``Stream`` trait (used by ``UnboundedReceiver``)
/// by adding the ``futures-util`` crate as a dependency and adding ``StreamExt`` into scope via ``use futures_util::stream::StreamExt;``
///
/// ## Example
///