public LockBackendInterface::wait($name, $delay = 30)
Waits a short amount of time before a second lock acquire attempt.
While this method is subject to have a generic implementation in abstract backend implementation, some backends may provide non blocking or less I/O intensive wait mechanism: this is why this method remains on the backend interface.
string $name: Lock name currently being locked.
int $delay: Milliseconds to wait for. Defaults to 30.
bool TRUE if the lock holds, FALSE if it may be available. You still need to acquire the lock manually and it may fail again.
public function wait($name, $delay = 30);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Lock!LockBackendInterface.php/function/LockBackendInterface::wait/8.1.x