APIdock / Ruby
/
method

register

ruby latest stable - Class: WEBrick
register(thread, time, exception)
public

Registers a new timeout handler

time

Timeout in seconds

exception

Exception to raise when timeout elapsed

# File lib/webrick/utils.rb, line 219
 def register(thread, time, exception)
 info = nil
 TimeoutMutex.synchronize{
 (@timeout_info[thread] ||= []) << (info = [time, exception])
 }
 @queue.push nil
 watcher
 return info.object_id
 end

AltStyle によって変換されたページ (->オリジナル) /