UNPKG

torrent-api-ts

Version:

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Build Status](https://travis-ci.org/Belphemur/torrent-api-ts.svg?branch=master)](https

12 lines (11 loc) 396 B
export declare type PromiseFactory<T> = () => Promise<T>; export declare class QueuedPromise<T> { private resolve; private reject; private promiseFactory; constructor(resolve: (value?: PromiseLike<T> | T) => void, reject: (reason?: any) => void, promiseFactory: PromiseFactory<T>); /** * Build and execute the underlying promise */ execute(): void; }