mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-29 03:23:50 -04:00
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:
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user