pub trait TaskOnce: Send {
// Required method
fn run_once(self, cx: &mut JSContext);
// Provided method
fn name(&self) -> &'static str { ... }
}Expand description
A task that can be sent between threads and run. The name method is for profiling purposes.