Stream.readTimeout

Gets the read timeout for the stream.

  1. Duration readTimeout [@property setter]
  2. Duration readTimeout [@property getter]
    class Stream
    abstract @property
    Duration
    readTimeout
    ()

Return Value

Type: Duration

The duration to set the timeout for.

Throws

StreamCannotTimeoutException if the stream does not support timeouts. StreamDisposedException if the stream has been disposed of.

Meta