method

synchronize

ruby latest stable - Class: Thread::Mutex

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_4_6) is shown here.

synchronize()
public

Obtains a lock, runs the block, and releases the lock when the block completes. See the example under Mutex.