whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
azjezz
/
psl
/
src
/
Psl
/
File
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/azjezz/psl/src/Psl/File/Lock.php
<?php declare(strict_types=1); namespace Psl\File; use Closure; final class Lock { private bool $released = false; /** * @param (Closure(): void) $release * * @internal use HandleInterface::lock() to create a lock. */ public function __construct( public readonly LockType $type, private Closure $releaseCallback, ) { } /** * Release the lock. */ public function release(): void { if ($this->released) { return; } ($this->releaseCallback)(); $this->released = true; } public function __destruct() { $this->release(); } }
Copyright ©2021 || Defacer Indonesia