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

x/grm/deps.ts>CancellablePromise.resolve

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

Analogous to Promise.resolve.

The returned promise should resolve even if it is canceled. The idea is that the promise is resolved instantaneously, so by the time the promise is canceled, it has already resolved.