MCPcopy Create free account
hub / github.com/thinkjs/thinkjs / Watcher

Class Watcher

test/case/application.js:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 mockie.mockThinkMockHttp();
91 const App = getApplication();
92 const watcher = class Watcher {
93 constructor(options,cb){
94 this.options = options;
95 this.cb = cb;
96 }
97 watch(){
98 console.log('start watch');
99 this.cb({});
100 }
101 };
102 const option = Object.assign({}, defaultOption, {watcher});
103 let app = new App(option);
104 app.run();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…