ml-timer

0.0.3 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i ml-timer

Weekly Downloads

0

Version

0.0.3

License

apache2

Last publish

Collaborators

  • iamblue