Function stdweb::event_loop
[−]
[src]
pub fn event_loop()
Runs the event loop.
You should call this before returning from main()
,
otherwise bad things will happen.
On Emscripten-based targets (asmjs-unknown-emscripten
,
wasm32-unknown-emscripten
) calling this is mandatory
and will not return. (It is, effectively, an infinite loop.)
On Rust's native wasm target (wasm32-unknown-unknown
)
calling this is not necessary and doesn't do anything.