HH\Lib\File\Handle::tryLockx

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

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

Parameters

  • HH\Lib\File\LockType $type

Returns