Skip to main content
function Deno.flock
Unstable

UNSTABLE: New API should be tested first.

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

Parameters

rid: number
optional
exclusive: boolean

Returns

Promise<void>