MCPcopy
hub / github.com/thinkjs/thinkjs / runInWorker

Method runInWorker

lib/application.js:165–174  ·  view source on GitHub ↗

* run in worker * @param {Object} argv

(argv)

Source from the content-addressed store, hash-verified

163 * @param {Object} argv
164 */
165 runInWorker(argv) {
166 return think.beforeStartServer().catch(err => {
167 think.logger.error(err);
168 }).then(() => {
169 const instance = this._getWorkerInstance(argv);
170 return instance.startServer();
171 }).then(() => {
172 think.app.emit('appReady');
173 });
174 }
175 /**
176 * command line invoke
177 */

Callers 1

runMethod · 0.95

Calls 4

_getWorkerInstanceMethod · 0.95
beforeStartServerMethod · 0.80
errorMethod · 0.80
startServerMethod · 0.45

Tested by

no test coverage detected