ml-timer
v0.0.3
Published
The timer package for Microlattice.js
Downloads
2
Readme
ml-timer
API
- __loop (Sync)
__loop(
function, // function
timer, // nubmer
)
- setTimeout (Async)
setTimeout(
function, // function
timer, // nubmer
)
Example
// Async, every 2s loop this function
setInterval(function() {
print(123);
}, 2000);
// Sync, every 2s loop this function
__loop(function() {
print(123);
}, 2000);