feat(sdk): EventCache uses matrix_sdk_common::executor::spawn.

This patch imports the `spawn` function from
`matrix_sdk_common::executor` instead of `tokio`.
`matrix_sdk_common::executor` adds support for WebAssembly.
This commit is contained in:
Ivan Enderlin
2024-02-19 14:25:25 +01:00
parent 88d7a2fe28
commit 814d78708e

View File

@@ -50,18 +50,15 @@ use matrix_sdk_base::{
deserialized_responses::{AmbiguityChange, SyncTimelineEvent},
sync::{JoinedRoomUpdate, LeftRoomUpdate, RoomUpdates, Timeline},
};
use matrix_sdk_common::executor::{spawn, JoinHandle};
use ruma::{
events::{AnyRoomAccountDataEvent, AnySyncEphemeralRoomEvent},
serde::Raw,
OwnedEventId, OwnedRoomId, RoomId,
};
use tokio::{
spawn,
sync::{
broadcast::{error::RecvError, Receiver, Sender},
Mutex, RwLock,
},
task::JoinHandle,
use tokio::sync::{
broadcast::{error::RecvError, Receiver, Sender},
Mutex, RwLock,
};
use tracing::{error, trace};