Native AbortController manager.
npm install @nodesuite/abort![]()
Simplified wrapper for native AbortController.
``bash`PNPM
pnpm install @nodesuite/abortYarn
yarn install @nodesuite/abortNPM
npm install @nodesuite/abort
`typescript
import { Abort, type AbortManager } from "@nodesuite/abort"
const abort: AbortManager = new Abort()
// Less verbose listeners.
abort.onAbort(() => console.log(Aborted!))
// Feeback
const result: boolean | Error = abort.abort()
`
`typescript
const abort: AbortController = new AbortController()
// Complex listener defintion.
abort.signal.addEventListener("abort", () => console.log(Aborted!), {
once: true
})
// No result feeback...
abort.abort()
``