Parent

Methods

Class Index [+]

Quicksearch

MessagePack::RPC::AsyncResult

Public Class Methods

new() click to toggle source
     # File lib/msgpack/rpc/server.rb, line 128
128:         def initialize
129:                 @responder = nil
130:                 @sent = false
131:         end

Public Instance Methods

error(err) click to toggle source
     # File lib/msgpack/rpc/server.rb, line 145
145:         def error(err)
146:                 result(nil, err)
147:                 nil
148:         end
result(retval, err = nil) click to toggle source
     # File lib/msgpack/rpc/server.rb, line 133
133:         def result(retval, err = nil)
134:                 unless @sent
135:                         if @responder
136:                                 @responder.result(retval, err)
137:                         else
138:                                 @result = [retval, err]
139:                         end
140:                         @sent = true
141:                 end
142:                 nil
143:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.