ResolvablePromise
import { ResolvablePromise } from "https://raw.githubusercontent.com/worker-tools/resolvable-promise/master/index.ts";
class ResolvablePromise<T> implements Promise<T> { }
constructor(init?: ResolvablePromiseInit<T> | null);
get settled();
readonly [Symbol.toStringTag]: string;
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
finally(onfinally?: (() => void) | null): Promise<T>;
reject(reason?: any);
resolve(x: T | PromiseLike<T>);
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;