⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (422 Bytes)
Bug #17164
ยป neverexit.rb
spraints (Matt Burke)
, 09/10/2020 07:52 PM
Thread
.
new
do
puts
"Starting thread"
loop
do
begin
should_raise
=
true
begin
sleep
1
should_raise
=
false
puts
"... tick (thread state =
#{
Thread
.
current
.
status
}
)"
ensure
raise
"boom"
if
should_raise
end
rescue
=&
gt
;
e
puts
"ignoring
#{
e
.
message
}
(
#{
e
.
class
}
)"
end
end
end
# Let the thread get started.
sleep
1.5
puts
"all done! exiting..."
(1-1/1)
Loading...