method

timeout

ruby latest stable - Class: WEBrick::Utils

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

timeout(seconds, exception=Timeout::Error)
private

Executes the passed block and raises exception if execution takes more than seconds.

If seconds is zero or nil, simply executes the block