future property

A future that will yield the response to the original message.

Implementation

Future<PushResponse> get future async {
  final response = await _responseCompleter.future;
  if (response.isTimeout) {
    throw ChannelTimeoutException(response);
  }
  return response;
}