Git Product home page Git Product logo

Comments (7)

a-sully avatar a-sully commented on August 13, 2024

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.

domenic avatar domenic commented on August 13, 2024

Yep, this is all well-specified in streams already. I don't think any new spec text is needed here or there.

from fs.

a-sully avatar a-sully commented on August 13, 2024

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.

domenic avatar domenic commented on August 13, 2024

https://streams.spec.whatwg.org/#writable-stream-default-controller-process-write step 5

from fs.

domenic avatar domenic commented on August 13, 2024

Tests: https://github.com/web-platform-tests/wpt/blob/master/streams/writable-streams/write.any.js#L110-L155 and similar

from fs.

annevk avatar annevk commented on August 13, 2024

@jesup can this be closed per the above comments?

from fs.

jesup avatar jesup commented on August 13, 2024

yes

from fs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.