Loading RustViz Engine...
Dispatch arbitrary jobs (Box<dyn FnOnce() + Send>) across N worker threads.
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
pub struct ThreadPool {
workers: Vec<Worker>,
sender: Option<std::sync::mpsc::Sender<Job>>,
}
type Job = Box<dyn FnOnce() + Send + 'static>;
struct Worker { id: usize }