Skip to content
Discussion options

You must be logged in to vote

You can't really block on Web.

The way it currently works is that App::run() (which calls winit::event_loop::EventLoop::run()) will throw (as in JS throw) which completely exits Rust. The rest of the application will continue working because it's callback based, e.g. the browser will call back into Rust when things happen.

So I'm not entirely sure what it is you are trying to do, but calling your Rust function which calls App::run() from JS won't block, but it will throw.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Amex1048
Comment options

@maximetinu
Comment options

Answer selected by Amex1048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants