UNPKG

obsidian-dev-utils

Version:

This is the collection of useful functions that you can use for your Obsidian plugin development

17 lines (16 loc) 491 B
/** * @packageDocumentation * * AbortController utilities. */ /** * An abort signal that never aborts. */ export declare const abortSignalNever: AbortSignal; /** * An abort signal that aborts when any of the given abort signals abort. * * @param abortSignals - The abort signals to abort when any of them abort. * @returns The abort signal that aborts when any of the given abort signals abort. */ export declare function abortSignalAny(abortSignals: AbortSignal[]): AbortSignal;