Extends
- Promise
Methods
cancel(reason)
Cancel the request. If a reason is provided, it will cause the
CancellablePromise returned by the fetch()
method to be called with a RequestError as it single argument,
containing status 512 and this reason as its message.
Parameters:
| Name | Type | Description |
|---|---|---|
reason |
string | The reason for the cancellation. If omitted, the request will be cancelled or aborted silently. |
- Source: