Swoole\Coroutine\Lock::lock
(No version information available, might only be in Git)
Swoole\Coroutine\Lock::lock — Acquire the lock, blocking if necessary
Description
public function Swoole\Coroutine\Lock::lock():
bool
Parameters
This function has no parameters.
Return Values
Returns true if the lock was acquired successfully,
false otherwise.