summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-07-10 15:42:38 +0200
committerLibravatar GitHub <noreply@github.com>2024-07-10 15:42:38 +0200
commit70f44a6e264f7307531935bf0fb9e33a5ebd81c1 (patch)
tree0b5a86af2116fced80f6f5cb20ba62fe5b89d7ba /src/lib.rs
parente86920be5b9984b4eb511e5e69efdcbf6ef3d8e4 (diff)
parent47f9554a82e65679c13ef17f3f3bf7fff5156184 (diff)
downloadiced-70f44a6e264f7307531935bf0fb9e33a5ebd81c1.tar.gz
iced-70f44a6e264f7307531935bf0fb9e33a5ebd81c1.tar.bz2
iced-70f44a6e264f7307531935bf0fb9e33a5ebd81c1.zip
Merge pull request #2496 from iced-rs/abortable-tasks
Abortable `Task`
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 09d9860e..79e2f276 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -202,9 +202,14 @@ pub use crate::core::{
Length, Padding, Pixels, Point, Radians, Rectangle, Rotation, Shadow, Size,
Theme, Transformation, Vector,
};
-pub use crate::runtime::{exit, Task};
+pub use crate::runtime::exit;
pub use iced_futures::Subscription;
+pub mod task {
+ //! Create runtime tasks.
+ pub use crate::runtime::task::{Handle, Task};
+}
+
pub mod clipboard {
//! Access the clipboard.
pub use crate::runtime::clipboard::{
@@ -309,6 +314,7 @@ pub use executor::Executor;
pub use font::Font;
pub use renderer::Renderer;
pub use settings::Settings;
+pub use task::Task;
#[doc(inline)]
pub use application::application;