Handle.hx 310 B

12345678910111213141516171819
  1. package hl.uv;
  2. @:hlNative("uv")
  3. class Handle {
  4. public var handle : HandleData;
  5. function new(h) {
  6. handle = h;
  7. }
  8. public function close( ?callb ) {
  9. if( handle != null ) close_handle(handle, callb);
  10. handle = null;
  11. }
  12. static function close_handle( h : HandleData, callb : Void->Void ) : Void {
  13. }
  14. }