mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-06 18:48:57 +00:00
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.
413 B
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.