mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
16 lines
600 B
TypeScript
16 lines
600 B
TypeScript
//#region src/core/abort-controller-registry.d.ts
|
|
type SignalKey = PropertyKey;
|
|
declare class AbortControllerRegistry {
|
|
#private;
|
|
/** The attach-scoped signal. Aborts on detach or reattach. */
|
|
get base(): AbortSignal;
|
|
/** Clears all keyed signals, leaving base intact. */
|
|
clear(): void;
|
|
/** Resets base and clears all keyed signals. */
|
|
reset(): void;
|
|
/** Creates a new signal for the key, superseding any previous signal. */
|
|
supersede(key: SignalKey): AbortSignal;
|
|
}
|
|
//#endregion
|
|
export { AbortControllerRegistry, SignalKey };
|
|
//# sourceMappingURL=abort-controller-registry.d.ts.map
|