This is the ThingsDB documentation for version v0, click here for the latest version!

run

Run a timer.

The run(..) function may also be used to run a procedure.

This function does not generate an event.

Function

run(timer)

Arguments

Argument Type Description
timer int (required) Id of the timer to run.

Return value

Returns the timer response.

Example

Example code using run:

.counter = 1;
timer = new_timer(datetime().move('days', 1), || .counter += 1);

wse(run(timer));

Return value in JSON format

2