close method

void close()

@AvailableInWorkers("dedicated")

The close() method of the FileSystemSyncAccessHandle interface closes an open synchronous file handle, disabling any further operations on it and releasing the exclusive lock previously put on the file associated with the file handle.

Note: In earlier versions of the spec, close(), FileSystemSyncAccessHandle.flush, FileSystemSyncAccessHandle.getSize, and FileSystemSyncAccessHandle.truncate were wrongly specified as asynchronous methods, and older versions of some browsers implement them in this way. However, all current browsers that support these methods implement them as synchronous methods.

Implementation

external void close();