Clone in a terminal:
lib.rs
examples/raytrace-parallel/src/ - Remove thread pool and provide a single function for spawning new threads commit 2759560
use kaja_web::prelude::*; use wasm_bindgen::{JsValue, prelude::wasm_bindgen}; macro_rules! console_log { ($($t:tt)*) => (crate::log(&format_args!($($t)*).to_string())) } #[wasm_bindgen] extern "C" { #[wasm_bindgen(js_namespace = console)] pub(crate) fn log(s: &str); #[wasm_bindgen(js_namespace = console, js_name = log)] pub(crate) fn logv(x: &JsValue); } mod main_component; mod pool; #[wasm_bindgen(start)] pub fn init() { log!("Starting"); std::panic::set_hook(Box::new(console_error_panic_hook::hook)); console_error_panic_hook::set_once(); log!("Init callbacks"); init_callbacks(); log!("Init complete"); }

File history (2 commits)

2145271 Johan Mattsson - johan.mattsson.m@gmail.com
Remove thread pool and provide a single function for spawning new threads
Remove thread pool and provide a single function for spawning new threads
2759560 Johan Mattsson - johan.mattsson.m@gmail.com
Multiple wasm threads
Multiple wasm threads

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112