UCE Docs / shell_spawn

Example

DValue spec; spec["cmd"] = "printf 'spawned in the background'"; spec["timeout_ms"] = (f64)1000;
u64 job = shell_spawn(spec);
DValue done = job_await(job, 3000);
print(done["result"]["stdout"].to_string(), "\n");
Output
spawned in the background