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

Function then

test/unit/preact/component/test-renderer.js:35–37  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

33 let renderCallback;
34 const render = env.sandbox.stub().callsFake((data) => ({
35 then(callback) {
36 renderCallback = () => callback(data.value);
37 },
38 }));
39 function resolve() {
40 renderCallback();

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected