* Creates a function that will call run method. * @param {!VsyncTaskSpecDef} task * @return {function(!VsyncStateDef=)}
(task)
| 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. |