MCPcopy Index your code
hub / github.com/ampproject/amphtml / createTask

Method createTask

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

* Creates a function that will call run method. * @param {!VsyncTaskSpecDef} task * @return {function(!VsyncStateDef=)}

(task)

Source from the content-addressed store, hash-verified

200 * @return {function(!VsyncStateDef=)}
201 */
202 createTask(task) {
203 return /** @type {function(!VsyncStateDef=)} */ (
204 (opt_state) => {
205 this.run(task, opt_state);
206 }
207 );
208 }
209
210 /**
211 * Runs the mutate operation via vsync.

Callers 1

loadWithPolyfill_Method · 0.80

Calls 1

runMethod · 0.95

Tested by

no test coverage detected