timeout property

Duration? timeout
final

The timeout for the entire round trip of a request before it is aborted.

If the request as a whole takes longer than this timeout, it will be cancelled. If this value is null, requests will never timeout.

If a request times out, it will throw a TimeoutException.

Implementation

final Duration? timeout;