Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/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.0/cli/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>