Sha256: 064f9da6798515419e92ddd6a872b6f9d106e4bab454a155f1f9297ade1a2d4f
Contents?: true
Size: 433 Bytes
Versions: 6
Compression:
Stored size: 433 Bytes
Contents
module UV class Prepare include Handle def start(&block) assert_block(block) assert_arity(1, block) @prepare_block = block check_result! UV.prepare_start(handle, callback(:on_prepare)) self end def stop check_result! UV.prepare_stop(handle) self end private def on_prepare(handle, status) @prepare_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/prepare.rb |
uvrb-0.1.4 | lib/uv/prepare.rb |
uvrb-0.1.3 | lib/uv/prepare.rb |
uvrb-0.1.2 | lib/uv/prepare.rb |
uvrb-0.1.1 | lib/uv/prepare.rb |
uvrb-0.1.0 | lib/uv/prepare.rb |