php8.5
Home/ Manual/ swoole / lock/ Swoole\Lock::trylock

Swoole\Lock::trylock

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Try to acquire the lock and return straight away even the lock is not available.

Description

Swoole\Lock::trylock(): void

Parameters Parameters

Return Values

Source: reference/swoole/swoole/lock/trylock.xml · from the official PHP manual (php/doc-en)