![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
abort-controller-multiplexer
Advanced tools
Combine multiple AbortControllers or AbortSignals into a single instance
Combine multiple AbortControllers or AbortSignals into a single instance
AbortController
s are very useful mechanisms in JavaScript that allow one to insert abort signals into application components with ease. You can pass an AbortController
's signal
(AbortSignal
) into methods you call, abort it later, and use it to:
Sometimes, in sufficiently complicated applications, you may run across situations where you need multiple abort signals. This library can be used to group them together into one large signal/controller, that you can abort from a single method or watch using a single signal.
Install using npm:
npm install abort-controller-multiplexer --save
Note that this library uses ESM. You must consume it in an ESM-friendly environment.
Combine several abort controllers:
import { combineControllers } from "abort-controller-multiplexer";
const ac1 = new AbortController();
const ac2 = new AbortController();
const controller = combineControllers(ac1, ac2);
controller.abort();
Note that combineControllers
calls combineSignals
under the hood.
Combine several signals:
import { combineSignals } from "abort-controller-multiplexer";
const ac1 = new AbortController();
const ac2 = new AbortController();
const signal = combineSignals(ac1.signal, ac2.signal);
ac1.abort();
signal.throwIfAborted(); // Throws
Note that these combination methods do not modify the underlying AbortController
and AbortSignal
instances.
v0.1.1
2023-11-14
FAQs
Combine multiple AbortControllers or AbortSignals into a single instance
The npm package abort-controller-multiplexer receives a total of 143 weekly downloads. As such, abort-controller-multiplexer popularity was classified as not popular.
We found that abort-controller-multiplexer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.