Promise Retry Design Patterns

Edit Pattern that keep on retrying until the promise resolves (with delay and maxRetries). Pattern that keeps on retrying until the condition meets on the result (with delay and maxRetries). A me...