This is the ThingsDB documentation for version v0, click here for the latest version!
Run a timer.
The run(..) function may also be used to run a procedure.
This function does not generate an event.
run(timer)
Argument | Type | Description |
---|---|---|
timer | int (required) | Id of the timer to run. |
Returns the timer response.
Example code using run:
.counter = 1;
timer = new_timer(datetime().move('days', 1), || .counter += 1);
wse(run(timer));
Return value in JSON format
2