From 269bf380e0fb2e532e7340c4ba64d4eaa4d5d45e Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Sun, 19 Sep 2021 20:46:54 +0800 Subject: fix(cli): move Deno.flock and Deno.funlock to unstable types (#12138) --- cli/dts/lib.deno.unstable.d.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'cli/dts/lib.deno.unstable.d.ts') 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; + + /** **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; + + /** **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( -- cgit v1.2.3