File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
dom/src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,11 @@ trait ReadableStreamUnderlyingSource[T] extends js.Object {
34
34
var pull : js.UndefOr [js.Function1 [ReadableStreamController [T ], Unit | js.Promise [Unit ]]] = js.undefined
35
35
36
36
/** A function that is called whenever the consumer cancels the stream, via [[ReadableStream.cancel ]] or
37
- * [[ReadableStreamReader.cancel ]]. It takes as its argument the same value as was passed to those methods by the
38
- * consumer.
39
- *
40
- * If the shutdown process is asynchronous, it can return a promise to signal success or failure; the result will be
41
- * communicated via the return value of the [[cancel ]] method that was called. Additionally, a rejected promise will
42
- * error the stream, instead of letting it close. Throwing an exception is treated the same as returning a rejected
43
- * promise.
37
+ * [[ReadableStreamReader.cancel():scala\.scalajs\.js\.Promise[Unit]*]]. It takes as its argument the same value as
38
+ * was passed to those methods by the consumer. If the shutdown process is asynchronous, it can return a promise to
39
+ * signal success or failure; the result will be communicated via the return value of the [[cancel ]] method that was
40
+ * called. Additionally, a rejected promise will error the stream, instead of letting it close. Throwing an exception
41
+ * is treated the same as returning a rejected promise.
44
42
*/
45
43
var cancel : js.UndefOr [js.Function1 [js.Any , Unit | js.Promise [Unit ]]] = js.undefined
46
44
You can’t perform that action at this time.
0 commit comments