whatwg / fs

File System Standard
https://fs.spec.whatwg.org/
Other
224 stars 19 forks source link

Allow transferring FileSystemWritableFileStream? #119

Open saschanaz opened 1 year ago

saschanaz commented 1 year ago

I found that FileSystemWritableFileStream is not transferable, can we make it so? I see no blocker as FileSystemWritableFileStream doesn't seem to hold any additional field, so it should be as straightforward as just using the same transfer steps of WritableStream. Or is there some blocker against that?

Edit: maybe yes, because the implementation detail of how the file stream shuts down (on worker termination etc.) will then be visible. The spec should describe what should happen on termination.