Sha256: 6c560f45c9f7ddf7fef288e374dfb7a291660d76db4247dd82467b06874fd436
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 Bytes
Contents
module Libuv module Resource def resolve(deferred, rc) if rc && rc < 0 deferred.reject(@loop.lookup_error(rc)) else deferred.resolve(nil) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libuv-0.11.22 | lib/libuv/mixins/resource.rb |
libuv-0.11.4 | lib/libuv/mixins/resource.rb |