Flowdock
method

exclusive

Importance_1
v5.2.3 - Show latest stable - 0 notes - Class: ShareLock
exclusive(purpose: nil, compatible: [], after_compatible: [], no_wait: false) public

Execute the supplied block while holding the Exclusive lock. If no_wait is set and the lock is not immediately available, returns nil without yielding. Otherwise, returns the result of the block.

See start_exclusive for other options.

Show source
Register or log in to add new notes.