Improve imports of Subscription::run doc example
This commit is contained in:
parent
1ada297b08
commit
ad74e4c69d
1 changed files with 10 additions and 5 deletions
|
|
@ -138,11 +138,16 @@ impl<T> Subscription<T> {
|
|||
/// and returning the `Sender` as a `Message` for the `Application`:
|
||||
///
|
||||
/// ```
|
||||
/// use iced_futures::subscription::{self, Subscription};
|
||||
/// use iced_futures::stream;
|
||||
/// use iced_futures::futures::channel::mpsc;
|
||||
/// use iced_futures::futures::sink::SinkExt;
|
||||
/// use iced_futures::futures::Stream;
|
||||
/// # mod iced {
|
||||
/// # pub use iced_futures::Subscription;
|
||||
/// # pub use iced_futures::futures;
|
||||
/// # pub use iced_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 {
|
||||
/// Ready(mpsc::Sender<Input>),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue