MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / call

Method call

src/main/views/manager.ts:30–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 call() {
31 const now = Date.now();
32 if (this.lastSave > now) {
33 //就说明我们不需要唤起一次新的同步
34 } else {
35 const interval = this.interval; //修改后预定一次保存,在此保存之前的所有修改都不会再预定保存
36 this.lastSave = now + interval;
37 setTimeout(() => {
38 this.realCall();
39 }, interval);
40 }
41 }
42
43 realCall() {
44 const now = Date.now();

Callers 11

promptRegisterFunction · 0.80
promptCreateInputFunction · 0.80
promptCreateSelectFunction · 0.80
iFunction · 0.80
DFunction · 0.80
CFunction · 0.80
marked.min.jsFile · 0.80
IFunction · 0.80
newMethodFunction · 0.80
initMethod · 0.80
createMainMethod · 0.80

Calls 1

realCallMethod · 0.95

Tested by

no test coverage detected