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

This commit is contained in:
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 { 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(), room: room.clone(),
raw: event.json(), raw: event.json(),
}; };
tokio::spawn((handler)(data)); matrix_sdk_common::executor::spawn((handler)(data));
} }
} }
} }