Deno.FsFile.prototype.lock - Deno documentation
method Deno.FsFile.prototype.lock
FsFile.prototype.lock(exclusive?: boolean): Promise<void>

Acquire an advisory file-system lock for the file.

Parameters

optional
exclusive: boolean = false

Return Type

Promise<void>