run

Run a timer.

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

This function does not generate a change.

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);

run(timer);

Return value in JSON format

2