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

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

Parameters

rid: number
optional
exclusive: boolean

Returns

Promise<void>