public function LockInterface::lock in Ultimate Cron 8.2
Acquire lock.
Parameters
string $job_id: The name of the lock to acquire.
float $timeout: The timeout in seconds for the lock.
Return value
string The lock id acquired.
1 method overrides LockInterface::lock()
- Lock::lock in src/
Lock/ Lock.php - Acquire lock.
File
- src/
Lock/ LockInterface.php, line 60
Class
- LockInterface
- Class for handling lock functions.
Namespace
Drupal\ultimate_cron\LockCode
public function lock($job_id, $timeout = 30.0);