@daiso-tech/core
Version:
The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.
8 lines (7 loc) • 321 B
TypeScript
import type { TimeSpan } from "../../../utilities/_module-exports.js";
/**
* @throws {TimeoutAsyncError} {@link TimeoutAsyncError}
*
* @internal
*/
export declare function timeoutAndFail<TValue>(promise: PromiseLike<TValue>, time: TimeSpan, abort: (rejection: unknown) => void, signal: AbortSignal): Promise<TValue>;