import { type Resolver } from "https://deno.land/x/grammy_conversations@v1.1.0/utils.ts";
A resolver wraps a promise so that it can be resolved by an outside event. It
is a container for this promise which you can await
, and a function
resolve
which you can call. Once you call resolve
, the contained promise
will resolve.
The status flag isResolved
indicates if resolve
has been called or not.