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

Method mutatePromise

src/service/vsync-impl.js:226–231  ·  view source on GitHub ↗

* Runs `mutate` wrapped in a promise. * @param {function():undefined} mutator * @return {!Promise}

(mutator)

Source from the content-addressed store, hash-verified

224 * @return {!Promise}
225 */
226 mutatePromise(mutator) {
227 return this.runPromise({
228 measure: undefined,
229 mutate: mutator,
230 });
231 }
232
233 /**
234 * Runs the measure operation via vsync.

Callers 15

test-vsync.jsFile · 0.80
resetBodyForOverlayFunction · 0.80
replaceSections_Method · 0.80
renderTemplate_Method · 0.80
replaceSections_Method · 0.80
layoutCallbackMethod · 0.80
emptyContainer_Method · 0.80
emptyContainer_Method · 0.80
open_Method · 0.80
close_Method · 0.80
test-dialog.jsFile · 0.80

Calls 1

runPromiseMethod · 0.95

Tested by

no test coverage detected