* [ruby-core:71312] [Ruby trunk - Feature #11650] [Open] Add custom error message arg to Timeout.timeout
[not found] <redmine.issue-11650.20151103102742@ruby-lang.org>
@ 2015-11-03 10:27 ` shatrov
2015-11-03 12:42 ` [ruby-core:71314] [Ruby trunk - Feature #11650] " nobu
2016-09-07 8:03 ` [ruby-core:77194] [Ruby trunk Feature#11650] " matz
2 siblings, 0 replies; 3+ messages in thread
From: shatrov @ 2015-11-03 10:27 UTC (permalink / raw)
To: ruby-core
Issue #11650 has been reported by Kir Shatrov.
----------------------------------------
Feature #11650: Add custom error message arg to Timeout.timeout
https://bugs.ruby-lang.org/issues/11650
* Author: Kir Shatrov
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
Now Timeout.timeout can accept custom error message:
~~~
Timeout.timeout(30, CustomException, “custom_message”)
~~~
This option might be useful for networking:
~~~
# net/smtp.rb#do_start
Timeout.timeout(30, Net::OpenTimeout, "failed to open #{host}") do
tcp_connection
end
~~~
---Files--------------------------------
feature.diff (1.66 KB)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:71314] [Ruby trunk - Feature #11650] Add custom error message arg to Timeout.timeout
[not found] <redmine.issue-11650.20151103102742@ruby-lang.org>
2015-11-03 10:27 ` [ruby-core:71312] [Ruby trunk - Feature #11650] [Open] Add custom error message arg to Timeout.timeout shatrov
@ 2015-11-03 12:42 ` nobu
2016-09-07 8:03 ` [ruby-core:77194] [Ruby trunk Feature#11650] " matz
2 siblings, 0 replies; 3+ messages in thread
From: nobu @ 2015-11-03 12:42 UTC (permalink / raw)
To: ruby-core
Issue #11650 has been updated by Nobuyoshi Nakada.
Description updated
Sounds reasonable.
----------------------------------------
Feature #11650: Add custom error message arg to Timeout.timeout
https://bugs.ruby-lang.org/issues/11650#change-54687
* Author: Kir Shatrov
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
Now Timeout.timeout can accept custom error message:
~~~ruby
Timeout.timeout(30, CustomException, “custom_message”)
~~~
This option might be useful for networking:
~~~ruby
# net/smtp.rb#do_start
Timeout.timeout(30, Net::OpenTimeout, "failed to open #{host}") do
tcp_connection
end
~~~
---Files--------------------------------
feature.diff (1.66 KB)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:77194] [Ruby trunk Feature#11650] Add custom error message arg to Timeout.timeout
[not found] <redmine.issue-11650.20151103102742@ruby-lang.org>
2015-11-03 10:27 ` [ruby-core:71312] [Ruby trunk - Feature #11650] [Open] Add custom error message arg to Timeout.timeout shatrov
2015-11-03 12:42 ` [ruby-core:71314] [Ruby trunk - Feature #11650] " nobu
@ 2016-09-07 8:03 ` matz
2 siblings, 0 replies; 3+ messages in thread
From: matz @ 2016-09-07 8:03 UTC (permalink / raw)
To: ruby-core
Issue #11650 has been updated by Yukihiro Matsumoto.
Accepted.
Matz.
----------------------------------------
Feature #11650: Add custom error message arg to Timeout.timeout
https://bugs.ruby-lang.org/issues/11650#change-60409
* Author: Kir Shatrov
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
Now Timeout.timeout can accept custom error message:
~~~ruby
Timeout.timeout(30, CustomException, “custom_message”)
~~~
This option might be useful for networking:
~~~ruby
# net/smtp.rb#do_start
Timeout.timeout(30, Net::OpenTimeout, "failed to open #{host}") do
tcp_connection
end
~~~
---Files--------------------------------
feature.diff (1.66 KB)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-07 7:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <redmine.issue-11650.20151103102742@ruby-lang.org>
2015-11-03 10:27 ` [ruby-core:71312] [Ruby trunk - Feature #11650] [Open] Add custom error message arg to Timeout.timeout shatrov
2015-11-03 12:42 ` [ruby-core:71314] [Ruby trunk - Feature #11650] " nobu
2016-09-07 8:03 ` [ruby-core:77194] [Ruby trunk Feature#11650] " matz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).