close method

Future<void> close()

Closes the session and fails any in-flight requests.

Implementation

Future<void> close() async {
  _onDone();
  await _sub.cancel();
  await _session.close();
}