ActionScheduler_Lock::set()
Set a lock.
To prevent race conditions, implementations should avoid setting the lock if the lock is already held.
Method of the class: ActionScheduler_Lock{}
No Hooks.
Return
true|false
.
Usage
$ActionScheduler_Lock = new ActionScheduler_Lock(); $ActionScheduler_Lock->set( $lock_type );
- $lock_type(string) (required)
- A string to identify different lock types.
ActionScheduler_Lock::set() ActionScheduler Lock::set code WC 8.6.1
abstract public function set( $lock_type );