/**
* This function is used to run a callback in the event loop with interval
*/
public static function setInterval(callable $callback, int $interval): SampleMacro;
The setInterval() method, repeatedly calls a function or executes a code snippet, with a fixed time delay between each call.