dom

Terminating DOM Operations at will: 'AbortController' in JavaScript

Intro AbortController is an interface which provides a way for terminating one or more web request as and when desired. This generally means that a request can be terminated by a user whenever needed, irrespective of whether the operation is finished or not. AbortSignal can be implemented in any web platform API which uses Promise. The API AbortController provides a few things for users to implement it effectively in code. At the time of writing this, the constructor would return an instance which contains a method AbortController.