Skip to content

Commit

Permalink
Merge pull request #1803 from ksss/timeout-exit-exception
Browse files Browse the repository at this point in the history
Add Timeout::ExitException
  • Loading branch information
soutaro committed Apr 22, 2024
2 parents 4fe2068 + badd417 commit 9975229
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stdlib/timeout/0/timeout.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ module Timeout
def self?.timeout: [T] (Numeric? sec, ?singleton(Exception) klass, ?String message) { (Numeric sec) -> T } -> T
end

# <!-- rdoc-file=lib/timeout.rb -->
# Internal error raised to when a timeout is triggered.
#
class Timeout::ExitException < Exception
end

# <!-- rdoc-file=lib/timeout.rb -->
# Raised by Timeout.timeout when the block times out.
#
Expand Down

0 comments on commit 9975229

Please sign in to comment.