Improve imports of Subscription::run doc example

This commit is contained in:
Héctor Ramón Jiménez 2024-09-18 22:13:09 +02:00
parent 1ada297b08
commit ad74e4c69d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -138,11 +138,16 @@ impl<T> Subscription<T> {
/// and returning the `Sender` as a `Message` for the `Application`: /// and returning the `Sender` as a `Message` for the `Application`:
/// ///
/// ``` /// ```
/// use iced_futures::subscription::{self, Subscription}; /// # mod iced {
/// use iced_futures::stream; /// # pub use iced_futures::Subscription;
/// use iced_futures::futures::channel::mpsc; /// # pub use iced_futures::futures;
/// use iced_futures::futures::sink::SinkExt; /// # pub use iced_futures::stream;
/// use iced_futures::futures::Stream; /// # }
/// use iced::futures::channel::mpsc;
/// use iced::futures::sink::SinkExt;
/// use iced::futures::Stream;
/// use iced::stream;
/// use iced::Subscription;
/// ///
/// pub enum Event { /// pub enum Event {
/// Ready(mpsc::Sender<Input>), /// Ready(mpsc::Sender<Input>),