ClientCall<Q, R> constructor
ClientCall<Q, R> (
- ClientMethod<
Q, R> _method, - Stream<
Q> _requests, - CallOptions options, [
- TimelineTask? _requestTimeline,
Implementation
ClientCall(
this._method,
this._requests,
this.options, [
this._requestTimeline,
]) {
_requestTimeline?.start(
'gRPC Request: ${_method.path}',
arguments: {
'method': _method.path,
'timeout': options.timeout?.toString(),
},
);
_responses.onListen = _onResponseListen;
if (options.timeout != null) {
_timeoutTimer = Timer(options.timeout!, _onTimedOut);
}
}