source: trip-planner-front/node_modules/@angular/compiler-cli/ngcc/src/locking/lock_file.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/// <amd-module name="@angular/compiler-cli/ngcc/src/locking/lock_file" />
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9import { AbsoluteFsPath, PathManipulation } from '../../../src/ngtsc/file_system';
10export declare function getLockFilePath(fs: PathManipulation): AbsoluteFsPath;
11export interface LockFile {
12 path: AbsoluteFsPath;
13 /**
14 * Write a lock file to disk containing the PID of the current process.
15 */
16 write(): void;
17 /**
18 * Read the PID, of the process holding the lock, from the lock-file.
19 *
20 * It is feasible that the lock-file was removed between the call to `write()` that effectively
21 * checks for existence and this attempt to read the file. If so then this method should just
22 * gracefully return `"{unknown}"`.
23 */
24 read(): string;
25 /**
26 * Remove the lock file from disk, whether or not it exists.
27 */
28 remove(): void;
29}
Note: See TracBrowser for help on using the repository browser.