MCPcopy Create free account
hub / github.com/uiwjs/react-codemirror / getScheduler

Function getScheduler

core/src/timeoutLatch.ts:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88let globalScheduler: Scheduler | null = null;
89
90export const getScheduler = (): Scheduler => {
91 if (typeof window === 'undefined') {
92 return new Scheduler();
93 }
94 if (!globalScheduler) {
95 globalScheduler = new Scheduler();
96 }
97 return globalScheduler;
98};

Callers 1

useCodeMirrorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…