Timer.hx 363 B

12345678910111213
  1. package lua.lib.luv;
  2. @:luaRequire("luv")
  3. extern class Timer extends Handle {
  4. static function new_timer() : Timer;
  5. @:native("new_timer") function new() : Void;
  6. function start(timeout : Int, repeat : Int, cb : Void->Void) : Int;
  7. function stop() : Int;
  8. function again() : Int;
  9. function set_repeat(repeat : Int) : Void;
  10. function get_repeat() : Int;
  11. }