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

x/grm/deps.ts>CancellablePromise#finally

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

Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.

Parameters

optional
onFinally: (() => void) | undefined | null

The callback to execute when the Promise is settled (fulfilled or rejected).

Returns

A Promise for the completion of the callback.