Skip to content

Commit fd24dee

Browse files
authored
Editorial: Add an IDL example to the proposal for multiple readers and writers
Add examples of the proposed IDL.
1 parent 74aca3f commit fd24dee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

proposals/MultipleReadersWriters.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313

1414
Currently, only one instance of [FileSystemSyncAccessHandle](https://fs.spec.whatwg.org/#api-filesystemsyncaccesshandle) may be open at a time, given a [file system entry](https://fs.spec.whatwg.org/#entry). This explainer proposes a new locking scheme and API changes to support multiple readers and writers for `FileSystemSyncAccessHandle` and an exclusive writer for `FileSystemWritableFileStream`.
1515

16+
```
17+
handle.createSyncAccessHandle({ mode: 'read-only' });
18+
handle.createWritable({ mode: 'exclusive' });
19+
```
20+
1621
## Goals
1722

1823
* Support multiple readers and writers for `FileSystemSyncAccessHandle`

0 commit comments

Comments
 (0)