Add FIXME comments for wasm compatibility

This commit is contained in:
bitfl0wer 2023-11-21 17:10:19 +01:00
parent 1ad93e2c01
commit 9ddf8dde1d
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
2 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ impl Gateway {
}; };
// Now we can continuously check for messages in a different task, since we aren't going to receive another hello // Now we can continuously check for messages in a different task, since we aren't going to receive another hello
// FIXME: Doesn't work in WASM
task::spawn(async move { task::spawn(async move {
gateway.gateway_listen_task().await; gateway.gateway_listen_task().await;
}); });

View File

@ -33,6 +33,7 @@ impl HeartbeatHandler {
let (send, receive) = tokio::sync::mpsc::channel(32); let (send, receive) = tokio::sync::mpsc::channel(32);
let kill_receive = kill_rc.resubscribe(); let kill_receive = kill_rc.resubscribe();
// FIXME: Doesn't work in WASM
let handle: JoinHandle<()> = task::spawn(async move { let handle: JoinHandle<()> = task::spawn(async move {
Self::heartbeat_task(websocket_tx, heartbeat_interval, receive, kill_receive).await; Self::heartbeat_task(websocket_tx, heartbeat_interval, receive, kill_receive).await;
}); });