unpinDht method

Future<void> unpinDht()
inherited

Unpin the DHT. If the DHT is not pinned and there are no more active DHT lookups and no DHT-enabled repositories, the DHT shuts down.

Implementation

Future<void> unpinDht(
) async {
  final request = RequestSessionUnpinDht(
  );
  final response = await client.invoke(request);
  switch (response) {
    case ResponseUnit(): return;
    default: throw UnexpectedResponse();
  }
}