MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / stop

Method stop

examples/greeting-app/src/caching-service.ts:129–136  ·  view source on GitHub ↗

* This method will be invoked when the application stops

()

Source from the content-addressed store, hash-verified

127 * This method will be invoked when the application stops
128 */
129 async stop(): Promise<void> {
130 debug('Stopping caching service');
131 /* istanbul ignore if */
132 if (this.timer) {
133 clearInterval(this.timer);
134 }
135 await this.clear();
136 }
137
138 /**
139 * This method may be used to restart the service (and may be triggered by a

Callers 1

restartMethod · 0.95

Calls 1

clearMethod · 0.95

Tested by

no test coverage detected