public function NullLockBackend::wait in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Lock/NullLockBackend.php \Drupal\Core\Lock\NullLockBackend::wait()
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.
Parameters
string $name: Lock name currently being locked.
int $delay = 30: Milliseconds to wait for.
Return value
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.
Overrides LockBackendInterface::wait
File
- core/
lib/ Drupal/ Core/ Lock/ NullLockBackend.php, line 44 - Contains \Drupal\Core\Lock\NullLockBackend.
Class
- NullLockBackend
- Defines a Null lock backend.
Namespace
Drupal\Core\LockCode
public function wait($name, $delay = 30) {
}