File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1238,14 +1238,19 @@ The <dfn method for=FileSystemSyncAccessHandle>flush()</dfn> method steps are:
1238
1238
1239
1239
<div class="note domintro">
1240
1240
: |handle| . {{FileSystemSyncAccessHandle/close()}}
1241
- :: Closes the access handle. This disables any further operations on it and
1241
+ :: Closes the access handle or no-ops if the access handle is already closed.
1242
+ This disables any further operations on it and
1242
1243
[=file entry/lock/release|releases the lock=] on the
1243
1244
[=FileSystemHandle/entry=] associated with |handle|.
1244
1245
</div>
1245
1246
1246
1247
<div algorithm>
1247
- The <dfn method for=FileSystemSyncAccessHandle>close()</dfn> method steps are
1248
- to set [=this=] .[=[[state]]=] to "`closed`".
1248
+ The <dfn method for=FileSystemSyncAccessHandle>close()</dfn> method steps are:
1249
+
1250
+ 1. If [=this=] 's [=[[state]]=] is "`closed`", return.
1251
+ 1. Set [=this=] 's [=[[state]]=] to "`closed`".
1252
+ 1. [=file entry/lock/release|Release the lock=] on
1253
+ [=this=] 's [=FileSystemSyncAccessHandle/[[file]]=] .
1249
1254
1250
1255
Note: This method does not guarantee that all file modifications will be
1251
1256
immediately reflected in the underlying storage device. Call the
You can’t perform that action at this time.
0 commit comments