Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.flock

A modern runtime for JavaScript and TypeScript.
Go to Latest
function Deno.flock
import { Deno } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.unstable.d.ts";
const { flock } = Deno;

UNSTABLE: New API, yet to be vetted.

Acquire an advisory file-system lock for the provided file. exclusive defaults to false.

Parameters

rid: number
optional
exclusive: boolean

Returns

Promise<void>