A timeout stream is triggered by a timer, the handler will be call when the timer is fired, it can be once or several times depending on the nature of the timer related to this stream. The will be called after the timer handler has been called.

Pausing the timer inhibits the timer shots until the stream is resumed. Setting a null handler callback cancels the timer.

no subtypes hierarchy

TimeoutStream(TimeoutStream unknown)
Inherited Attributes
Attributes inherited from: Object
hash, string
cancelshared default void cancel()

Cancels the timeout. Note this has the same effect as calling handler with a null argument.

endHandlershared actual default TimeoutStream endHandler(Anything()? endHandler)

Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called.

exceptionHandlershared actual default TimeoutStream exceptionHandler(Anything(Throwable)? handler)

Set an exception handler.

handlershared actual default TimeoutStream handler(Anything(Integer)? handler)

Set a data handler. As data is read, the handler will be called with the data.

pauseshared actual default TimeoutStream pause()

Pause the ReadSupport. While it's paused, no data will be sent to the dataHandler

resumeshared actual default TimeoutStream resume()

Resume reading. If the ReadSupport has been paused, reading will recommence on it.

Inherited Methods
Methods inherited from: Object
Methods inherited from: ReadStream<T>
Methods inherited from: StreamBase