Skip to main content
Module

x/retry/wait/timeoutError.ts

Re-execute a function until it does not throw an error or execute a function with a timeout.
Very Popular
Latest
File
// Copyright since 2020, FranckLdx. All rights reserved. MIT license.export class TimeoutError extends Error { isTimeout = true;}/** Type guard for TimeoutError */
export function isTimeoutError(error: Error): error is TimeoutError { return (error as TimeoutError).isTimeout === true;}