src/vs/platform/telemetry/node/appInsightsAppender.ts/AppInsightsAppender/flush
class AppInsightsAppender:	flush(): Promise<any> {
		if (this._aiClient) {
			return new Promise(resolve => {
				this._withAIClient((aiClient) => {
					// Attempts to suppress https://github.com/microsoft/vscode/issues/140624
					try {
						aiClient.flush({
							callback: () => {
								// all data flushed
								this._aiClient = undefined;
								resolve(undefined);
							}
						});
					} catch { }
				});
			});
		}
		return Promise.resolve(undefined);
	}