module PipeRpc class Hub::Request::Result def initialize(request, result) @request, @result, @async_responder = request, result end def value @result end def to_response ResultResponse.new(id: @request.id, result: @result) end end end