isCancelError

Check if an error is a cancel error

function isCancelError(error: any): boolean;

Return value

The function returns a boolean indicating whether the error was caused by a cancelled request.