This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24445 - [Streams API] The Promise returned by write() method should tell the result of the write()
Summary: [Streams API] The Promise returned by write() method should tell the result o...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Streams API (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Takeshi Yoshino
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 04:22 UTC by Takeshi Yoshino
Modified: 2014-01-30 06:30 UTC (History)
2 users (show)

See Also:


Attachments

Description Takeshi Yoshino 2014-01-30 04:22:56 UTC
Currently, we're using the Promise returned by the write() method for pacing write speed, i.e. just for flow control.

As we've changed the Streams API to be more generic one, correlating error and each write() operation now is more meaningful.

We already have awaitSpaceAvailable(). Let's just leave the functionality of flow control to it and have the Promise returned by the write() method be fulfilled only when that write() operation is finished. Not when the WritableStream can accept (buffer) more write() operations.
Comment 1 Takeshi Yoshino 2014-01-30 06:30:23 UTC
Fixed in ED.