Deno.flock

UNSTABLE: New API should be tested first.

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

function flock(rid: number, exclusive?: boolean): Promise<void>;
§
flock(rid: number, exclusive?: boolean): Promise<void>
[src]

§Parameters

§
rid: number
[src]
§
exclusive?: boolean optional
[src]

§Return Type

§
Promise<void>
[src]