- From: Adam Rice <notifications@github.com>
- Date: Wed, 29 Mar 2017 22:39:45 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 30 March 2017 05:40:17 UTC
ricea commented on this pull request. > @@ -2568,6 +2568,48 @@ nothrow>ReadableByteStreamControllerShouldCallPull ( <var>controller</var> )</h4 writeRandomBytesForever(myWritableStream).catch(e => console.error("Something broke", e)); </code></pre> </div> + +<h3 id="ws-design-philosopy">Design Philosophy</h3> + +<div>While sharing the principles for streams in general, a number of additional principles have informed the design of +the WritableStream class.</div> + +<ul> + <li><p>Only one sink method can ever be executing at a time. + <li><p>Sink methods are treated as atomic. + <ul> + <li><p>"Atomic" here means that the time between a sink method being called and the returned Promise resolving or + rejecting is treated as indivisible. + <li><p>A new sink method will never be called until the Promise from the previous one has resolved. + <li><p>State changes do not take effect until any in-flight sink method has completed. Reworded a bit. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/718#discussion_r108844412
Received on Thursday, 30 March 2017 05:40:17 UTC