1 export type ResolveAfterPromise = {
6 export const resolveAfter = function (timesUntilResolve: number): ResolveAfterPromise {
11 if (timesUntilResolve <= 0) {
12 throw new Error('Resolve after requires a positive integer');
15 const promise: Promise<void> = new Promise((resolvePromise) => {
19 if (++currentValue === timesUntilResolve) {