Hide Subscription internals

.. and introduce `stream::channel` helper
This commit is contained in:
Héctor Ramón Jiménez 2024-07-05 02:15:13 +02:00
parent e50aa03edc
commit 8bc49cd886
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
11 changed files with 268 additions and 246 deletions

View file

@ -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;