Rewrite with new concurrent-ruby primitives.