Project

General

Profile

Actions

Bug #12847

closed

Documentation of instance method Thread.abort_on_exception= is wrong

Added by mikekap (Mike Kaplinskiy) over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:77649]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0