HH\Lib\Experimental\File\Handle::tryLockx

Immediately get a shared or exclusive lock on a file, or throw

public function tryLockx(
  HH\Lib\Experimental\File\LockType $mode,
): HH\Lib\Experimental\File\Lock;

Parameters

  • HH\Lib\Experimental\File\LockType $mode

Returns