Use matrix_sdk_common::executor::spawn instead of tokio::spawn

master
Jonas Platte 2021-09-08 21:08:23 +02:00
parent 971cdf37f6
commit ce0cb273bb
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 6 additions and 2 deletions

View File

@ -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(),
));
}
}
}

View File

@ -306,7 +306,7 @@ impl Client {
room: room.clone(),
raw: event.json(),
};
tokio::spawn((handler)(data));
matrix_sdk_common::executor::spawn((handler)(data));
}
}
}