summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 1a27f2b38..bfc4536f0 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -1258,6 +1258,32 @@ declare namespace Deno {
*/
alpnProtocols?: string[];
}
+
+ /** **UNSTABLE**: New API should be tested first.
+ *
+ * Acquire an advisory file-system lock for the provided file. `exclusive`
+ * defaults to `false`.
+ */
+ export function flock(rid: number, exclusive?: boolean): Promise<void>;
+
+ /** **UNSTABLE**: New API should be tested first.
+ *
+ * Acquire an advisory file-system lock for the provided file. `exclusive`
+ * defaults to `false`.
+ */
+ export function flockSync(rid: number, exclusive?: boolean): void;
+
+ /** **UNSTABLE**: New API should be tested first.
+ *
+ * Release an advisory file-system lock for the provided file.
+ */
+ export function funlock(rid: number): Promise<void>;
+
+ /** **UNSTABLE**: New API should be tested first.
+ *
+ * Release an advisory file-system lock for the provided file.
+ */
+ export function funlockSync(rid: number): void;
}
declare function fetch(