Use matrix_sdk_common::executor::spawn instead of tokio::spawn
This commit is contained in:
parent
971cdf37f6
commit
ce0cb273bb
2 changed files with 6 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue