Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/grm/deps.ts>CancellablePromise#catch

MTProto API Client for Deno 🦕
Go to Latest
method CancellablePromise.prototype.catch
Re-export
import { CancellablePromise } from "https://deno.land/x/grm@0.8.0/deps.ts";

Analogous to Promise.catch.

Type Parameters

optional
TResult = never

Parameters

optional
onRejected: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null