Comments (7)
Can multiple async operations be pending for WritableFileStream? I presume so.
There's a WPT asserting that operations can be queued. Is that what you're looking for or am I misinterpreting your question?
If so, what happens to following operations if one has an error? (Right now I presume nothing happens to them; they run as normal.) We could, for example, abort all queued tasks for the stream on error.
I assume the stream goes into an errored state and all further operations are rejected... we should probably match the behavior of WritableStreamDefaultWriter
if we don't already.
@domenic this seems like something that should be specified in the Streams spec? (and also probably on the FileSystemWritableFileStream::write()
method in this spec)
from fs.
Yep, this is all well-specified in streams already. I don't think any new spec text is needed here or there.
from fs.
Could you point me to where this is specified in Streams? It looks like behavior after calling abort()
is specified, but I'm not seeing anything about what happens when write()
itself fails. At minimum, we could link there from this spec?
from fs.
https://streams.spec.whatwg.org/#writable-stream-default-controller-process-write step 5
from fs.
Tests: https://github.com/web-platform-tests/wpt/blob/master/streams/writable-streams/write.any.js#L110-L155 and similar
from fs.
@jesup can this be closed per the above comments?
from fs.
yes
from fs.
Related Issues (20)
- proposals/MultipleReadersWriters.md
- File and Directory Watch Functionality for the FileSystem API HOT 1
- Clarify behavior of `createWritable()` when the corresponding file does not exist HOT 1
- Add a `FileSystemHandle.create()` method to create self
- Define File's type better (getFile()) HOT 6
- Define the Bucket File System in terms of the Storage spec
- Why is WirteParams's data both optional and nullable?
- Editorial: string formatting
- Support locking of directory entries
- Require taking a lock to remove an entry HOT 1
- FYI: TPAC 2023 WICG breakout session
- Temporary directories/files HOT 2
- New Modes of Creating a FileSystemWritableFileStream HOT 3
- No explicit file lock release when `write()` throws an exception HOT 3
- Origin Private File System – identification of buckets (similarly to FAS API showSaveFilePicker) HOT 3
- Using F_FULLFSYNC for flush() causing slow performance on Mac HOT 1
- getFile() shouldn't require a copy of the underlying data HOT 4
- Add a FileSystemFileHandle copy method
- Hyuuhhh
- POSIX style path access for OPFS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fs.