LockBackendInterface::wait

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.

Parameters

string $name: Lock name currently being locked.

int $delay: Milliseconds to wait for. Defaults to 30.

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.

File

core/lib/Drupal/Core/Lock/LockBackendInterface.php, line 105

Class

LockBackendInterface
Lock backend interface.

Namespace

Drupal\Core\Lock

Code

public function wait($name, $delay = 30);
doc_Drupal
2016-10-29 09:24:55
Comments
Leave a Comment

Please login to continue.