Function promiseWithResolvers
- promiseWithResolvers<T>(): {
promise: Promise<T>;
reject: ((reason: any) => void);
resolve: ((value: T) => void);
} Returns {
promise: Promise<T>;
reject: ((reason: any) => void);
resolve: ((value: T) => void);
}
promise: Promise<T>
reject: ((reason: any) => void)
- (reason): void
Returns void
resolve: ((value: T) => void)
- (value): void
Returns void