public static function onUnlock($filePath) {
        $filePath = FileHelper::normalizePath($filePath);
        if (!static::isLocked($filePath)) {
            return resolve(true);
        }
        $deferred = new Deferred();
        if (!isset(static::$_lockedFilesQueue[$filePath])) {
            static::$_lockedFilesQueue[$filePath] = [];
        }
        static::$_lockedFilesQueue[$filePath][] = $deferred;
        return $deferred->promise();
    }
public static function onUnlock($filePath) {
        $filePath = FileHelper::normalizePath($filePath);
        if (!static::isLocked($filePath)) {
            return resolve(true);
        }
        $deferred = new Deferred();
        if (!isset(static::$_lockedFilesQueue[$filePath])) {
            static::$_lockedFilesQueue[$filePath] = [];
        }
        static::$_lockedFilesQueue[$filePath][] = $deferred;
        return $deferred->promise();
    }
public static function onUnlock ( $ filePath ) { $ filePath = FileHelper :: normalizePath ( $ filePath ) ; if ( ! static :: isLocked ( $ filePath ) ) { return resolve ( true ) ; } $ deferred = new Deferred ( ) ; if ( ! isset ( static :: $ _lockedFilesQueue [ $ filePath ] ) ) { static :: $ _lockedFilesQueue [ $ filePath ] = [ ] ; } static :: $ _lockedFilesQueue [ $ filePath ] [ ] = $ deferred ; return $ deferred -> promise ( ) ; }
Get promise of unlocking file
@param string $filePath
@return ExtendedPromiseInterface
Get promise of unlocking file