MCPcopy Create free account
hub / github.com/microsoft/SandDance / onWorkCanceled

Function onWorkCanceled

docs/external/js/react.development.js:3201–3218  ·  view source on GitHub ↗
(interactions, threadID)

Source from the content-addressed store, hash-verified

3199 }
3200
3201 function onWorkCanceled(interactions, threadID) {
3202 var didCatchError = false;
3203 var caughtError = null;
3204 subscribers.forEach(function (subscriber) {
3205 try {
3206 subscriber.onWorkCanceled(interactions, threadID);
3207 } catch (error) {
3208 if (!didCatchError) {
3209 didCatchError = true;
3210 caughtError = error;
3211 }
3212 }
3213 });
3214
3215 if (didCatchError) {
3216 throw caughtError;
3217 }
3218 }
3219
3220
3221

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected