Stream.readTimeout

Sets the read timeout for the stream.

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

Parameters

dur 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