Skip to content

Examples: The winit::EventLoop should not be run in wasm_bindgen_futures::spawn_local #1457

@dragly

Description

@dragly

Running the event loop inside of an async function in spawn_local appears to block new JS promises from being run if they are created in an event callback:

wasm-bindgen/wasm-bindgen#2246

I am not sure exactly how to restructure the examples, but figured I would post this here in case anyone knows the right way to do this or comes across the same issue as I did.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ecosystemHelp the connected projects grow and prosperhelp requiredWe need community help to make this happen.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions