From: "splattael (Peter Suschlik)" Date: 2013-03-28T00:57:21+09:00 Subject: [ruby-core:53773] [ruby-trunk - Bug #8097] Mutex#synchronize block param oddity Issue #8097 has been updated by splattael (Peter Suschlik). I've create a pull request on GitHub which fixes this issue: https://github.com/ruby/ruby/pull/266 The patch: https://github.com/ruby/ruby/pull/266.patch ---------------------------------------- Bug #8097: Mutex#synchronize block param oddity https://bugs.ruby-lang.org/issues/8097#change-37970 Author: splattael (Peter Suschlik) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: 2.0 In 1.9.3 Mutex#synchronize yield nothing. In 2.0.0 Mutex#synchronize yields nil. require 'thread' Mutex.new.synchronize do |*args| p RUBY_VERSION => args end See https://gist.github.com/splattael/5164747 -- http://bugs.ruby-lang.org/