Overview.htm
changeset 117 6ccb7d75a511
parent 116 d59e463a9181
child 118 360cd31579a7
equal deleted inserted replaced
116:d59e463a9181 117:6ccb7d75a511
  1028 							<li>Wait until <a>dataSource</a> acknowledges the readClosure</li>
  1028 							<li>Wait until <a>dataSource</a> acknowledges the readClosure</li>
  1029 							<li>Fulfill <var>closePromise</var> with <code>undefined</code></li>
  1029 							<li>Fulfill <var>closePromise</var> with <code>undefined</code></li>
  1030 						</ol>
  1030 						</ol>
  1031 					</p>
  1031 					</p>
  1032 				</dd>
  1032 				</dd>
       
  1033 
       
  1034 				<dt>Promise&amp;lt;undefined&gt; readAbort(any reason)</dt>
       
  1035 				<dd>
       
  1036 					<p>
       
  1037 						This method tells the ReadableByteStream that no more data will be read from it with indication of error.
       
  1038 						The details of the error will be given by <var>reason</var> argument.
       
  1039 						The interpretation of <var>reason</var> is up to <a>dataSource</a>.
       
  1040 						Once readAbort() has been called on a ReadableByteStream, no further method calls can be made on the ReadableByteStream.
       
  1041 					</p>
       
  1042 
       
  1043 					<p>
       
  1044 						This method must run the steps below:
       
  1045 						<ol>
       
  1046 							<li>Let <var>abortPromise</var> be a new <a>Promise</a></li>
       
  1047 							<li>Return <var>abortPromise</var>, and then continue the process the steps in this algorithm</li>
       
  1048 							<li><a>Read-abort</a> <a>dataSource</a> with <var>reason</var></li>
       
  1049 							<li>Wait until <a>dataSource</a> acknowledges the read-abort</li>
       
  1050 							<li>Fulfill <var>abortPromise</var> with <code>undefined</code></li>
       
  1051 						</ol>
       
  1052 					</p>
       
  1053 				</dd>
  1033 			</dl>
  1054 			</dl>
  1034 		</section>
  1055 		</section>
  1035 
  1056 
  1036 		<section class="section" id='readableByteStreamDataSource'>
  1057 		<section class="section" id='readableByteStreamDataSource'>
  1037 			<h3>Data source model</h3>
  1058 			<h3>Data source model</h3>
  1055 						Requests and delivery of bytes don't need to 1-to-1 correspond.
  1076 						Requests and delivery of bytes don't need to 1-to-1 correspond.
  1056 						Data sources may produce bytes and send to <a>ReadableByteStream</a> unsolicitedly without receiving any retrieval request.
  1077 						Data sources may produce bytes and send to <a>ReadableByteStream</a> unsolicitedly without receiving any retrieval request.
  1057 					</li>
  1078 					</li>
  1058 					<li>
  1079 					<li>
  1059 						Accepts and acknowledges readClosure signal which means the associated <a>ReadableByteStream</a> has completed consuming bytes from this data source without indication of any error.
  1080 						Accepts and acknowledges readClosure signal which means the associated <a>ReadableByteStream</a> has completed consuming bytes from this data source without indication of any error.
       
  1081 					</li>
       
  1082 					<li>
       
  1083 						Accepts and acknowledges read-abort signal which means the associated <a>ReadableByteStream</a> has completed consuming bytes from this data source with indication of any error.
  1060 					</li>
  1084 					</li>
  1061 				</ul>
  1085 				</ul>
  1062 			</p>
  1086 			</p>
  1063 
  1087 
  1064 			<p>
  1088 			<p>