Files
kumomta/docs/reference/kumo/sleep.md
T
Wez Furlong 9e823dc352 add kumo.time lua module, with new timer object
The timer object can track latencies in lua code and is helpful for
ad-hoc, explicit "profiling" in your policy script: the latencies are
exported via a prometheus histogram.
2025-01-09 15:36:30 -07:00

413 B

kumo.sleep(SECONDS)

!!! warning This function has moved to the kumo.time module and will be removed in a future release. {{since('dev', inline=True)}}

{{since('2024.06.10-84e84b89')}}

Sleeps the current task for the specified number of seconds. The value can be either an integer or a floating point value, the latter can be used to specify fractional duration values.