MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / dispose

Function dispose

src/shared/logging.ts:139–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 });
138 return {
139 async dispose(): Promise<void> {
140 if (fileLogger) {
141 await fileLogger.dispose();
142 fileLogger = undefined;
143 }
144 return new Promise((resolve) => {
145 if (logStream) {
146 logStream.write(`${(new Date()).toDateString()} ${time(true)}Log file ended${os.EOL}`);
147 logStream.once("finish", resolve);
148 logStream.end();
149 logStream = undefined;
150 }
151 });
152 },
153 };
154}
155

Callers

nothing calls this directly

Calls 2

timeFunction · 0.85
disposeMethod · 0.65

Tested by

no test coverage detected