-
Hi! I managed to export my rust function to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can't really block on Web. The way it currently works is that So I'm not entirely sure what it is you are trying to do, but calling your Rust function which calls |
Beta Was this translation helpful? Give feedback.
You can't really block on Web.
The way it currently works is that
App::run()
(which callswinit::event_loop::EventLoop::run()
) will throw (as in JSthrow
) 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.