Deno.flock - Deno documentation
function Deno.flock
Unstable
flock(
rid: number,
exclusive?: boolean,
): Promise<void>

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

Parameters

rid: number
optional
exclusive: boolean = false

Return Type

Promise<void>