[−][src]Function stdweb::event_loop
pub fn event_loop()
Runs Emscripten's event loop.
If you're compiling your project without using cargo-web
and you're using an Emscripten-based target (asmjs-unknown-emscripten
,
or wasm32-unknown-emscripten
) then calling this before returning
from main()
is mandatory and will not return. (It is, effectively, an infinite loop.)
If you're using cargo-web
to build your project then you never need to call this.