MainLoop.hx 288 B

1234567891011121314
  1. package haxe;
  2. typedef MainEvent = haxe.EventLoop.Event;
  3. /**
  4. This class exists for backward compatibility. You should use haxe.EventLoop instead.
  5. **/
  6. class MainLoop {
  7. public static function add(f:Void->Void, priority = 0) : MainEvent {
  8. return EventLoop.main.add(f, priority);
  9. }
  10. }