close method

FutureOr<void> close()

Implementation

FutureOr<void> close() {
  final flush = _options.telemetryProcessor.flush();
  if (flush is Future<void>) {
    return flush.then((_) => _options.httpClient.close());
  }
  _options.httpClient.close();
}