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

Method constructor

core/src/timeoutLatch.ts:11–15  ·  view source on GitHub ↗
(callback: Function, timeoutMS: number)

Source from the content-addressed store, hash-verified

9 private callbacks: Function[] = [];
10
11 constructor(callback: Function, timeoutMS: number) {
12 this.timeLeftMS = timeoutMS;
13 this.timeoutMS = timeoutMS;
14 this.callbacks.push(callback);
15 }
16
17 tick(): void {
18 if (!this.isCancelled && !this.isTimeExhausted) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected