MCPcopy
hub / github.com/lodash/lodash / attempt

Function attempt

test/test.js:808–816  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

806 start = +new Date;
807
808 var attempt = function() {
809 var actual = _._VERSION;
810 if ((new Date - start) < limit && typeof actual != 'string') {
811 setTimeout(attempt, 16);
812 return;
813 }
814 assert.strictEqual(actual, _.VERSION);
815 done();
816 };
817
818 attempt();
819 }

Callers 2

templateFunction · 0.85
test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected