Method: Selenium::WebDriver::Firefox::SocketLock#locked

Defined in:
lib/selenium/webdriver/firefox/socket_lock.rb

#locked(&blk) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
19
20
21
22
23
24
# File 'lib/selenium/webdriver/firefox/socket_lock.rb', line 16

def locked(&blk)
  lock

  begin
    yield
  ensure
    release
  end
end