MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / removeReasonId

Function removeReasonId

ses.cjs:6904–6911  ·  view source on GitHub ↗
(reasonId)

Source from the content-addressed store, hash-verified

6902 let cancelChecking;
6903
6904 const removeReasonId= (reasonId)=>{
6905 mapDelete(idToReason, reasonId);
6906 if( cancelChecking&& idToReason.size=== 0) {
6907 // No more unhandled rejections to check, just cancel the check.
6908 cancelChecking();
6909 cancelChecking= undefined;
6910 }
6911 };
6912
6913 /** @type {WeakMap<Promise, ReasonId>} */
6914 const promiseToReasonId= new WeakMap();

Callers 3

finalizeDroppedPromiseFunction · 0.85
rejectionHandledHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected