Skip to main content
Deno.FsFile.prototype.lockSync - Deno documentation
method Deno.FsFile.prototype.lockSync
FsFile.prototype.lockSync(exclusive?: boolean): void

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

Parameters

optional
exclusive: boolean = false

Return Type

void