MCPcopy Create free account
hub / github.com/ampproject/amphtml / executeCallback_

Method executeCallback_

third_party/subscriptions-project/swg.js:9331–9337  ·  view source on GitHub ↗

* @param {!CallbackId} id * @param {function(*)} callback * @param {*} data * @private

(id, callback, data)

Source from the content-addressed store, hash-verified

9329 * @private
9330 */
9331 executeCallback_(id, callback, data) {
9332 // Always execute callbacks in a microtask.
9333 Promise.resolve().then(() => {
9334 callback(data);
9335 this.resetCallback_(id);
9336 });
9337 }
9338}
9339
9340/**

Callers 2

setCallback_Method · 0.95
trigger_Method · 0.95

Calls 4

resetCallback_Method · 0.95
resolveMethod · 0.80
callbackFunction · 0.50
thenMethod · 0.45

Tested by

no test coverage detected