abort static method

AbortSignal abort([
  1. dynamic reason
])

Create a new abort signal that has already been aborted. The reason can be an Error, but also a string or any other Object you may want.

It is recommended to use an Error or a derived class of it to keep consistency

Implementation

external static AbortSignal abort([final dynamic reason]);