관리-도구
편집 파일: abort_on_exception%3d-c.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: When set to <tt>true</tt>, all threads will abort if an exception is raised. Returns the new state. - !ruby/struct:SM::Flow::VERB body: " Thread.abort_on_exception = true\n t1 = Thread.new do\n puts "In new thread"\n raise "Exception from thread"\n end\n sleep(1)\n puts "not reached"\n" - !ruby/struct:SM::Flow::P body: <em>produces:</em> - !ruby/struct:SM::Flow::VERB body: " In new thread\n prog.rb:4: Exception from thread (RuntimeError)\n from prog.rb:2:in `initialize'\n from prog.rb:2:in `new'\n from prog.rb:2\n" full_name: Thread::abort_on_exception= is_singleton: true name: abort_on_exception= params: | Thread.abort_on_exception= boolean => true or false visibility: public