MCPcopy Index your code
hub / github.com/ether/etherpad / setChangeCallbackTimeout

Function setChangeCallbackTimeout

src/static/js/changesettracker.ts:50–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 let changeCallbackTimeout = null;
49
50 const setChangeCallbackTimeout = () => {
51 // can call this multiple times per call-stack, because
52 // we only schedule a call to changeCallback if it exists
53 // and if there isn't a timeout already scheduled.
54 if (changeCallback && changeCallbackTimeout == null) {
55 changeCallbackTimeout = scheduler.setTimeout(() => {
56 try {
57 changeCallback();
58 } catch (pseudoError) {
59 // as empty as my soul
60 } finally {
61 changeCallbackTimeout = null;
62 }
63 }, 0);
64 }
65 };
66
67 let self;
68 return self = {

Callers 1

makeChangesetTrackerFunction · 0.85

Calls 1

setTimeoutMethod · 0.80

Tested by

no test coverage detected