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