diff options
author | 2024-06-14 01:52:30 +0200 | |
---|---|---|
committer | 2024-06-14 01:52:30 +0200 | |
commit | b328da2c71e998e539bdc65815061e88dd1e7081 (patch) | |
tree | 0dbd05ccffd9a771e46e653ec4c364bf1e65cc8c /runtime/src/task.rs | |
parent | a25b1af45690bdd8e1cbb20ee3a5b1c4342de455 (diff) | |
download | iced-b328da2c71e998e539bdc65815061e88dd1e7081.tar.gz iced-b328da2c71e998e539bdc65815061e88dd1e7081.tar.bz2 iced-b328da2c71e998e539bdc65815061e88dd1e7081.zip |
Fix `Send` requirements for Wasm targets
Diffstat (limited to 'runtime/src/task.rs')
-rw-r--r-- | runtime/src/task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/task.rs b/runtime/src/task.rs index ac28a4e7..f3ddbca1 100644 --- a/runtime/src/task.rs +++ b/runtime/src/task.rs @@ -52,7 +52,7 @@ impl<T> Task<T> { /// its output. pub fn widget(operation: impl widget::Operation<T> + 'static) -> Task<T> where - T: MaybeSend + 'static, + T: Send + 'static, { Self::channel(move |sender| { let operation = |