Skip to content

Commit bacebd2

Browse files
committed
Spec fixes
1 parent 0796436 commit bacebd2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ The <dfn method for="Stream">duplex(options)</dfn> method creates a pair of conn
11241124
<li>Create [=push stream=] B→A with |bOpts| settings, yielding |writerB| and |readableBA|.
11251125
<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.
11261126
<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.
11281128
<li>Return « |channelA|, |channelB| ».
11291129
</ol>
11301130
</div>

0 commit comments

Comments
 (0)