close method

Future<void> close()

Closes the holepuncher

Implementation

Future<void> close() async {
  await _closedMutex.synchronized(() {
    _closed = true;
  });

  _ctx.complete();
  return _ctx.future;
}