Method: MysqlFramework::Scripts::LockManager#with_client
- Defined in:
- lib/mysql_framework/scripts/lock_manager.rb
#with_client ⇒ Object
This method is called to retrieve a Redlock client from the pool and yield it to a block
73 74 75 76 77 78 |
# File 'lib/mysql_framework/scripts/lock_manager.rb', line 73 def with_client client = fetch_client yield client ensure @pool.push(client) end |