mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-13 10:35:41 -04:00
Use matrix_sdk_common::executor::spawn instead of tokio::spawn
This commit is contained in:
@@ -2130,7 +2130,11 @@ impl Client {
|
||||
};
|
||||
|
||||
for notification in room_notifications {
|
||||
tokio::spawn((handler)(notification.clone(), room.clone(), self.clone()));
|
||||
matrix_sdk_common::executor::spawn((handler)(
|
||||
notification.clone(),
|
||||
room.clone(),
|
||||
self.clone(),
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -306,7 +306,7 @@ impl Client {
|
||||
room: room.clone(),
|
||||
raw: event.json(),
|
||||
};
|
||||
tokio::spawn((handler)(data));
|
||||
matrix_sdk_common::executor::spawn((handler)(data));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user