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

/ml-timer/

    Package Sidebar

    Install

    npm i ml-timer

    Weekly Downloads

    2

    Version

    0.0.3

    License

    apache2

    Last publish

    Collaborators

    • iamblue