Stream.writeTimeout

Gets the write timeout for the stream.

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

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