mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-18 14:18:19 -04:00
feat(sdk): use the new method in the context of two background jobs
This commit is contained in:
@@ -108,7 +108,7 @@ pub(in crate::timeline) async fn spawn_crypto_tasks(
|
||||
CryptoDropHandles {
|
||||
_redecryption_report_join_handle: redecryption_report_join_handle,
|
||||
_encryption_changes_handle: task_monitor
|
||||
.spawn_background_task("timeline::encryption_state_changes", async move {
|
||||
.spawn_background_job("timeline::encryption_state_changes", async move {
|
||||
controller.handle_encryption_state_changes().await
|
||||
})
|
||||
.abort_on_drop(),
|
||||
|
||||
@@ -292,7 +292,7 @@ impl UtdHookManager {
|
||||
|
||||
// Spawn a task that will wait for the given delay, and maybe call the parent
|
||||
// hook then.
|
||||
let handle = self.client.task_monitor().spawn_background_task("utd_hook", async move {
|
||||
let handle = self.client.task_monitor().spawn_background_job("utd_hook", async move {
|
||||
// Wait for the given delay.
|
||||
sleep(max_delay).await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user