[ruby-core:77649] [Ruby trunk Bug#12847] Documentation of instance method Thread.abort_on_exception= is wrong

From: mike.kaplinskiy@...
Date: 2016-10-17 17:09:11 UTC
List: ruby-core #77649
Issue #12847 has been reported by Mike Kaplinskiy.

----------------------------------------
Bug #12847: Documentation of instance method Thread.abort_on_exception= is wrong
https://bugs.ruby-lang.org/issues/12847

* Author: Mike Kaplinskiy
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
The documentation for the instance method says that the setting is global: https://ruby-doc.org/core-2.3.0/Thread.html#method-i-abort_on_exception-3D:

~~~
When set to true, all threads (including the main program) will abort if an exception is raised in this thr.
~~~

That's actually incorrect - the instance-level setting affects only the thread it was set on; it's not global.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next