dojo / core

:rocket: Dojo 2 - language helpers and utilities.
http://dojo.io
Other
213 stars 62 forks source link

add support for signal request option #399

Open nicknisi opened 6 years ago

nicknisi commented 6 years ago

Type: feature

The following has been addressed in the PR:

Description:

Note: This PR is dependent on dojo/shim#143.

Resolves #390

add support for a signal: AbortSignal property in the request options. When provided, the request can be aborted by calling the AbortController#abort method, similar to the fetch API. When a request is aborted, the Promise is rejected with an AbortError, if possible.