Skip to main content

construct_worker

Function construct_worker 

Source
pub fn construct_worker(args: &[Value]) -> Result<Value, String>
Expand description

Build a Worker and spawn its OS thread (runs on the MAIN thread). The worker thread runs filename (a file path, or the code itself when options.eval is truthy) against its own fresh thread_local host.