⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.127
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Thread
/
View File Name :
report_on_exception%3d-c.ri
U:RDoc::AnyMethod[iI"report_on_exception=:ETI"!Thread::report_on_exception=;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Returns the new state. ;TI"IWhen set to +true+, all threads created afterwards will inherit the ;TI"Ncondition and report a message on $stderr if an exception kills a thread:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"'Thread.report_on_exception = true ;TI"t1 = Thread.new do ;TI" puts "In new thread" ;TI"% raise "Exception from thread" ;TI" end ;TI"sleep(1) ;TI"puts "In the main thread" ;T:@format0o; ; [I"This will produce:;T@o;; [ I"In new thread ;TI"U#
terminated with exception (report_on_exception is true): ;TI"(Traceback (most recent call last): ;TI"Jprog.rb:4:in `block in
': Exception from thread (RuntimeError) ;TI"In the main thread ;T; 0o; ; [I"$See also ::report_on_exception.;T@o; ; [I"OThere is also an instance level method to set this for a specific thread, ;TI"see #report_on_exception=.;T: @fileI" thread.c;T:0@omit_headings_from_table_of_contents_below0I"
true or false ;T0[ I" (p1);T@+FI"Thread;TcRDoc::NormalClass00