close method

void close()

Closes any opened resource associated with the Publication, including services.

Implementation

void close() {
  try {
    fetcher.close();
  } on Exception catch (e) {
    Fimber.e("ERROR closing fetcher $fetcher", ex: e);
  }
  for (PublicationService it in _services) {
    try {
      it.close();
    } on Exception catch (e) {
      Fimber.e("ERROR closing service $it", ex: e);
    }
  }
}