This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const waitFor = (delay = 0) => new Promise((resolve) => setTimeout(resolve, delay)) | |
const recursiveToZero = (func, attempt, delay, error) => { | |
if (attempt === 0) { | |
throw error || new Error('Fail') | |
} | |
return func().catch((err) => waitFor(delay).then(() => recursiveToZero(func, attempt - 1, delay, err))) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = (function() { | |
var App = function() { | |
var _modules = { | |
controllers: {}, | |
directives: {}, | |
constants: {}, | |
services: {}, | |
routes: {} | |
}; |
NewerOlder