From 826fe9f67020e219d19eb585e55deb267cc3b21f Mon Sep 17 00:00:00 2001 From: Surma Date: Fri, 26 Jan 2018 22:26:00 +0000 Subject: [PATCH 1/4] Add more cross-links --- index.bs | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/index.bs b/index.bs index 0326478fa..de804728a 100644 --- a/index.bs +++ b/index.bs @@ -95,7 +95,7 @@ A readable stream represents a source of data, from which you out of a readable stream. Concretely, a readable stream is an instance of the {{ReadableStream}} class. Although a readable stream can be created with arbitrary behavior, most readable streams wrap a lower-level I/O source, -called the underlying source. There are two types of underlying source: push sources and pull sources. +called the underlying source ([[#rs-constructor|interface description]]). There are two types of underlying source: push sources and pull sources. Push sources push data at you, whether or not you are listening for it. They may also provide a mechanism for pausing and resuming the flow of data. An example push source is a TCP socket, where data is @@ -137,7 +137,7 @@ A writable stream represents a destination for data, into whic goes in to a writable stream. Concretely, a writable stream is an instance of the {{WritableStream}} class. Analogously to readable streams, most writable streams wrap a lower-level I/O sink, called the -underlying sink. Writable streams work to abstract away some of the complexity of the underlying sink, by +underlying sink ([[#ws-constructor|interface description]]). Writable streams work to abstract away some of the complexity of the underlying sink, by queuing subsequent writes and only delivering them to the underlying sink one by one. Chunks are written to the stream via its public interface, and are passed one at a time to the stream's @@ -385,15 +385,15 @@ like

   class ReadableStream {
-    constructor(underlyingSource = {}, { size, highWaterMark } = {})
+    [[#rs-constructor|constructor]](underlyingSource = {}, { size, highWaterMark } = {})
 
-    get locked()
+    get [[#rs-locked|locked]]()
 
-    cancel(reason)
-    getReader()
-    pipeThrough({ writable, readable }, options)
-    pipeTo(dest, { preventClose, preventAbort, preventCancel } = {})
-    tee()
+    [[#rs-cancel|cancel]](reason)
+    [[#rs-get-reader|getReader]]()
+    [[#rs-pipe-through|pipeThrough]]({ writable, readable }, options)
+    [[#rs-pipe-to|pipeTo]](dest, { preventClose, preventAbort, preventCancel } = {})
+    [[#rs-tee|tee]]()
   }
 
@@ -444,11 +444,11 @@ ReadableStream(underlyingSource = {}, { size, highWat govern how the constructed stream instance behaves: