deno.com

method Deno.FsFile.prototype.lockSync

#FsFile.prototype.lockSync(exclusive?: boolean): void

Synchronously acquire an advisory file-system lock synchronously for the file.

Parameters #

#exclusive: boolean = false
optional

Return Type #

void