cleanup, docs
This commit is contained in:
@@ -23,4 +23,5 @@ Task keys may contain ordinary user-facing text. UCE hashes the key before using
|
||||
`timeout` is enforced in the child process with an alarm. The default is ten minutes. Pass `0` only for tasks that have their own shutdown path.
|
||||
|
||||
:example
|
||||
print("task example\n");
|
||||
task("doc-demo-task", []() { usleep(100000); });
|
||||
print(task_pid("doc-demo-task") > 0 ? "background task is running" : "no task", "\n");
|
||||
|
||||
Reference in New Issue
Block a user