DOM

DOM

Source

Though promises do not have a built-in aborting mechanism, many APIs using them require abort
semantics. AbortController is meant to support these requirements by providing an abort() method that toggles the state of a corresponding AbortSignal object.
The API which wishes to support aborting can accept an AbortSignal object, and use its state to
determine how to proceed.



Read Next page

Report Page