cleanup, docs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user