Currently we have #797 and #845 working on bringing in webassembly support. Unfortunately, in the browser we have to return from function calls. These backends both have to rely on throwing exceptions as control flow in order to break out of the loop.
Is there a way winit could provide some mechanisms for loops that work this way? I noticed some of the other backends implement a run_return function that is usually called by run; perhaps winit could standardize on this?
Currently we have #797 and #845 working on bringing in webassembly support. Unfortunately, in the browser we have to return from function calls. These backends both have to rely on throwing exceptions as control flow in order to break out of the loop.
Is there a way winit could provide some mechanisms for loops that work this way? I noticed some of the other backends implement a
run_returnfunction that is usually called byrun; perhaps winit could standardize on this?