Hide Subscription internals
.. and introduce `stream::channel` helper
This commit is contained in:
parent
e50aa03edc
commit
8bc49cd886
11 changed files with 268 additions and 246 deletions
10
src/lib.rs
10
src/lib.rs
|
|
@ -175,6 +175,7 @@ use iced_winit::core;
|
|||
use iced_winit::runtime;
|
||||
|
||||
pub use iced_futures::futures;
|
||||
pub use iced_futures::stream;
|
||||
|
||||
#[cfg(feature = "highlighter")]
|
||||
pub use iced_highlighter as highlighter;
|
||||
|
|
@ -202,6 +203,7 @@ pub use crate::core::{
|
|||
Theme, Transformation, Vector,
|
||||
};
|
||||
pub use crate::runtime::{exit, Task};
|
||||
pub use iced_futures::Subscription;
|
||||
|
||||
pub mod clipboard {
|
||||
//! Access the clipboard.
|
||||
|
|
@ -255,13 +257,6 @@ pub mod mouse {
|
|||
};
|
||||
}
|
||||
|
||||
pub mod subscription {
|
||||
//! Listen to external events in your application.
|
||||
pub use iced_futures::subscription::{
|
||||
channel, run, run_with_id, unfold, Subscription,
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(feature = "system")]
|
||||
pub mod system {
|
||||
//! Retrieve system information.
|
||||
|
|
@ -314,7 +309,6 @@ pub use executor::Executor;
|
|||
pub use font::Font;
|
||||
pub use renderer::Renderer;
|
||||
pub use settings::Settings;
|
||||
pub use subscription::Subscription;
|
||||
|
||||
#[doc(inline)]
|
||||
pub use application::application;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue