cleanup, docs
This commit is contained in:
@@ -9,4 +9,7 @@ Use `job_status()`, `job_await()`, `job_result()`, or `job_cancel()` with the re
|
||||
>sys
|
||||
|
||||
:example
|
||||
print("shell_spawn example\n");
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user