Sha256: 1066ac905e3df3d6894f2f8f75fc7be950b422e0c943691405d2da313f4bca96
Contents?: true
Size: 419 Bytes
Versions: 6
Compression:
Stored size: 419 Bytes
Contents
module UV class Check include Handle def start(&block) assert_block(block) assert_arity(1, block) @check_block = block check_result! UV.check_start(handle, callback(:on_check)) self end def stop check_result! UV.check_stop(handle) self end private def on_check(handle, status) @check_block.call(check_result(status)) end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
uvrb-0.2.0 | lib/uv/check.rb |
uvrb-0.1.4 | lib/uv/check.rb |
uvrb-0.1.3 | lib/uv/check.rb |
uvrb-0.1.2 | lib/uv/check.rb |
uvrb-0.1.1 | lib/uv/check.rb |
uvrb-0.1.0 | lib/uv/check.rb |