Fix Send requirements for Wasm targets

This commit is contained in:
Héctor Ramón Jiménez 2024-06-14 01:52:30 +02:00
parent a25b1af456
commit b328da2c71
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 7 additions and 7 deletions

View file

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