Skip to content

Fetch request body as ReadableStream #628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Nov 17, 2021
Prev Previous commit
Next Next commit
Fix scaladoc for ReadableStreamReader.cancel overloads.
  • Loading branch information
ptrdom committed Nov 11, 2021
commit 5d11d2cd16addfd8d341ccf410bdffc5af00aa7d
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ trait ReadableStreamUnderlyingSource[T] extends js.Object {
var pull: js.UndefOr[js.Function1[ReadableStreamController[T], Unit | js.Promise[Unit]]] = js.undefined

/** A function that is called whenever the consumer cancels the stream, via [[ReadableStream.cancel]] or
* [[ReadableStreamReader.cancel]]. It takes as its argument the same value as was passed to those methods by the
* consumer.
*
* If the shutdown process is asynchronous, it can return a promise to signal success or failure; the result will be
* communicated via the return value of the [[cancel]] method that was called. Additionally, a rejected promise will
* error the stream, instead of letting it close. Throwing an exception is treated the same as returning a rejected
* promise.
* [[ReadableStreamReader.cancel():scala\.scalajs\.js\.Promise[Unit]*]]. It takes as its argument the same value as
* was passed to those methods by the consumer. If the shutdown process is asynchronous, it can return a promise to
* signal success or failure; the result will be communicated via the return value of the [[cancel]] method that was
* called. Additionally, a rejected promise will error the stream, instead of letting it close. Throwing an exception
* is treated the same as returning a rejected promise.
*/
var cancel: js.UndefOr[js.Function1[js.Any, Unit | js.Promise[Unit]]] = js.undefined

Expand Down