You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1124,7 +1124,7 @@ The <dfn method for="Stream">duplex(options)</dfn> method creates a pair of conn
1124
1124
<li>Create [=push stream=] B→A with |bOpts| settings, yielding |writerB| and |readableBA|.
1125
1125
<li>Let |channelA| be a new {{DuplexChannel}} with writer |writerA| (writes go to B), readable |readableBA| (reads come from B). Calling {{DuplexChannel/close()}} on |channelA| ends |writerA| (signaling end-of-stream to B's readable) and stops iteration of |readableBA| (by calling `.return()` on its iterator if active). The close is idempotent.
1126
1126
<li>Let |channelB| be a new {{DuplexChannel}} with writer |writerB| (writes go to A), readable |readableAB| (reads come from A). Calling {{DuplexChannel/close()}} on |channelB| ends |writerB| and stops iteration of |readableAB|. The close is idempotent.
1127
-
<li>If |options|["{{DuplexOptions/signal}}"] is present, register an abort handler that closes both channels.
1127
+
<li>If |options|["{{DuplexOptions/signal}}"] is present, register an abort handler that calls {{Writer/fail()}} on both writers with the signal's abort reason.
0 commit comments