Sha256: 793d2ebf697819e8f3876bf8caf1cf8eb5e9ef8db0aca5294d7c5f8e9363ed7a
Contents?: true
Size: 613 Bytes
Versions: 4
Compression:
Stored size: 613 Bytes
Contents
module Vertx # @private class ARWrappedHandler include org.vertx.java.core.AsyncResultHandler def initialize(handler, &result_converter) @handler = handler @result_converter = result_converter end def handle(future_result) if @handler if future_result.succeeded if @result_converter @handler.call(nil, @result_converter.call(future_result.result)) else @handler.call(nil, future_result.result) end else @handler.call(future_result.cause, nil) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems