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

Method run

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

* Runs vsync task: measure followed by mutate. * * If state is not provided, the value passed to the measure and mutate * will be undefined. * * @param {!VsyncTaskSpecDef} task * @param {!VsyncStateDef=} opt_state

(task, opt_state)

Source from the content-addressed store, hash-verified

168 * @param {!VsyncStateDef=} opt_state
169 */
170 run(task, opt_state) {
171 this.tasks_.push(task);
172 this.states_.push(opt_state || undefined);
173 this.schedule_();
174 }
175
176 /**
177 * Runs vsync task: measure followed by mutate. Returns the promise that

Callers 6

runPromiseMethod · 0.95
createTaskMethod · 0.95
mutateMethod · 0.95
measureMethod · 0.95
runAnimMethod · 0.95
mutateWork_Method · 0.45

Calls 2

schedule_Method · 0.95
pushMethod · 0.45

Tested by

no test coverage detected