Sha256: 1b91b49ad0c8571f8b9e83e26c5465f3b2e4280d4cd8d835084248fe3d238983
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
module Libuv module Resource def resolve(deferred, rc) if rc.nil? || rc >= 0 deferred.resolve(nil) else deferred.reject(@loop.lookup_error(rc)) end end def check_result!(rc) e = @loop.lookup_error(rc) unless rc.nil? || rc >= 0 raise e if e end def check_result(rc) @loop.lookup_error(rc) unless rc.nil? || rc >= 0 end def to_ptr @pointer end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libuv-0.10.2 | lib/libuv/mixins/resource.rb |