<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24445</bug_id>
          
          <creation_ts>2014-01-30 04:22:56 +0000</creation_ts>
          <short_desc>[Streams API] The Promise returned by write() method should tell the result of the write()</short_desc>
          <delta_ts>2014-01-30 06:30:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Streams API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Takeshi Yoshino">tyoshino</reporter>
          <assigned_to name="Takeshi Yoshino">tyoshino</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99463</commentid>
    <comment_count>0</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2014-01-30 04:22:56 +0000</bug_when>
    <thetext>Currently, we&apos;re using the Promise returned by the write() method for pacing write speed, i.e. just for flow control.

As we&apos;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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99468</commentid>
    <comment_count>1</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2014-01-30 06:30:23 +0000</bug_when>
    <thetext>Fixed in ED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>