Project

General

Profile

Actions

Backport #8097

closed

Mutex#synchronize block param oddity

Added by splattael (Peter Leitzen) over 11 years ago. Updated over 11 years ago.


Description

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0