- __loop (Sync)
__loop(
function, // function
timer, // nubmer
)
- setTimeout (Async)
setTimeout(
function, // function
timer, // nubmer
)
// Async, every 2s loop this function
setInterval(function() {
print(123);
}, 2000);
// Sync, every 2s loop this function
__loop(function() {
print(123);
}, 2000);