Method: Expedite::Server::ApplicationManager#with
- Defined in:
- lib/expedite/server/application_manager.rb
#with(name) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/expedite/server/application_manager.rb', line 15 def with(name) pool = @pools[name] target = pool.checkout begin ret = yield target ensure pool.checkin(target) end ret end |