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

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

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

UNSTABLE: New API, yet to be vetted.

Acquire an advisory file-system lock synchronously for the provided file.

Parameters

rid: number
optional
exclusive: boolean