HH\Lib\File\Handle::tryLockx

Facebook Engineer?

The containing class is available as File\Handle in the www repository.

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