deno.com

method Deno.FsFile.prototype.lock

#FsFile.prototype.lock(exclusive?: boolean): Promise<void>

Acquire an advisory file-system lock for the file.

Parameters #

#exclusive: boolean = false
optional

Return Type #

Promise<void>