I'm on Ruby 2.1.1 with Concurrent Ruby 1.0.0. When I run the code `CountDownLatch.new.wait` I get the following error:
irb(main):001:0> require 'concurrent'
=> true
irb(main):002:0> Concurrent::CountDownLatch.new.wait
fatal: No live threads left. Deadlock?
from /Users/akahn/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:43:in `sleep'
from /Users/akahn/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:43:in `wait'
from /Users/akahn/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:43:in `ns_wait'
from /Users/akahn/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/abstract_lockable_object.rb:43:in `ns_wait_until'
from /Users/akahn/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/concurrent-ruby-1.0.0/lib/concurrent/atomic/mutex_count_down_latch.rb:21:in `block in wait'
from /Users/akahn/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `block in synchronize'
from /Users/akahn/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
from /Users/akahn/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
from /Users/akahn/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/concurrent-ruby-1.0.0/lib/concurrent/atomic/mutex_count_down_latch.rb:21:in `wait'
from (irb):2
from /Users/akahn/.rbenv/versions/2.1.1/bin/irb:11:in `<main>'
Am I doing something wrong or is this a bug? I also tried with concurrent-ruby-ext but got the same result.