GoLang Swoole\Lock::trylock_read

request it (294)
GoLang replacement for PHP's Swoole\Lock::trylock_read [edit | history]

Do you know a GoLang replacement for PHP's Swoole\Lock::trylock_read? Write it!

PHP Swoole\Lock::trylock_read

PHP original manual for Swoole\Lock::trylock_read [ show | php.net ]


(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Swoole\Lock::trylock_readTry to lock a read-write lock for reading and return straight away even the lock is not available.


public void Swoole\Lock::trylock_read ( void )


This function has no parameters.

Return Values