Menu
Open source

timers

Caution

Starting on k6 v0.50, the experimental module k6/experimental/timers has been graduated, and its functionality is now available in the k6/net/timers module. The k6/experimental/timers is deprecated and will be removed in v0.52.0.

To migrate your scripts, replace all k6/experimental/timers imports with k6/net/timers.

This modules implements the commonly found in browsers:

FunctionDescription
setTimeoutsets a function to be run after a given timeout
clearTimeoutclears a previously set timeout with setTimeout
setIntervalsets a function to be run on a given interval
clearIntervalclears a previously set interval with setInterval