[ruby-cvs:51662] nobu:r44517 (trunk): timeout.rb: defer creating custom exception

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Jan 7 12:42:38 JST 2014


nobu	2014-01-07 12:42:37 +0900 (Tue, 07 Jan 2014)

  New Revision: 44517

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44517

  Log:
    timeout.rb: defer creating custom exception
    
    * lib/timeout.rb (Timeout#timeout): when a custom exception is given,
      no instance is needed to be caught, so defer creating new instance
      until it is raised.  [ruby-core:59511] [Bug #9354]

  Modified files:
    trunk/ChangeLog
    trunk/lib/timeout.rb
    trunk/test/test_timeout.rb


More information about the ruby-cvs mailing list