abort-options
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

abort-options

codecov CI

An interface with an optional AbortSignal

About

An object that contains an AbortSignal as the optional signal property.

Example

const controller = new AbortController()

aLongRunningOperation({
  signal: controller.signal
})

// later

controller.abort()

Install

$ npm i abort-options

Browser <script> tag

Loading this module through a script tag will make its exports available as AbortOptions in the global namespace.

<script src="https://unpkg.com/abort-options/dist/index.min.js"></script>

API Docs

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Readme

Keywords

none

Package Sidebar

Install

npm i abort-options

Weekly Downloads

0

Version

1.0.2

License

Apache-2.0 OR MIT

Unpacked Size

7.4 kB

Total Files

9

Last publish

Collaborators

  • achingbrain