cleanup, docs

This commit is contained in:
root
2026-06-16 23:02:45 +00:00
parent ea08d5f28b
commit b8b56cf3dd
160 changed files with 1076 additions and 511 deletions
+4 -1
View File
@@ -24,4 +24,7 @@ If a process with the same `key` is already running anywhere in the runtime inst
`timeout` bounds the lifetime of the repeating worker. The default is ten minutes. Pass `0` only for workers that have another shutdown path.
:example
print("task_repeat example\n");
task_repeat("doc-demo-repeat", 60.0, []() { usleep(10000); });
pid_t pid = task_pid("doc-demo-repeat");
print(pid > 0 ? "repeating task scheduled" : "not scheduled", "\n");
if(pid > 0) task_kill(pid);