#[wasm_bindgen(start)] on async fns

Is the following not allowed? If so, what is the fix? Notice the async

#[wasm_bindgen(start)]
pub async fn main() {
  game_client::run().await
}
#[wasm_bindgen(start)]
pub async fn main() {
    wasm_bindgen_futures::spawn_local(game_client::run())
}
1 Like