MCPcopy
hub / github.com/ampproject/amphtml / reportingBackoff

Function reportingBackoff

src/error-reporting.js:106–110  ·  view source on GitHub ↗
(work)

Source from the content-addressed store, hash-verified

104 * @return {number} the setTimeout id
105 */
106let reportingBackoff = function (work) {
107 // Set reportingBackoff as the lazy-created function. JS Vooodoooo.
108 reportingBackoff = exponentialBackoff(1.5);
109 return reportingBackoff(work);
110};
111
112/**
113 * Attempts to stringify a value, falling back to String.

Callers 1

onErrorFunction · 0.85

Calls 1

exponentialBackoffFunction · 0.90

Tested by

no test coverage detected