Sha256: ade1d191f719444cbaeeeaa1f5b9594f3788c33b3cfac684cb008bdc59ab18a3
Contents?: true
Size: 356 Bytes
Versions: 8
Compression:
Stored size: 356 Bytes
Contents
require 'revdispatch' # define this part in ruby to make sure other # ruby threads can execute while we waiting for a response module Evdispatch class Loop def response(id) while wait_for_response( id, 1, 0 ) res = response_for( id ) break if res end res = response_for( id ) unless res res end end end
Version data entries
8 entries across 8 versions & 1 rubygems