readStandardErrorWithTimeout

expect fun readStandardErrorWithTimeout(buffer: ByteArray, offset: Int, count: Int, timeoutMillis: Int): Int

Read up to count bytes into buffer at offset from the standard error stream. The number of bytes read will be returned. 0 will be returned if interruptStandardErrorRead is called while waiting for data, or if at least timeoutMillis have passed without data.

Parameters

timeoutMillis

A value of 0 will perform a non-blocking read. Otherwise, valid values are 1 to 999 which represent a maximum time (in milliseconds) to wait for data. Note: This value is not validated.

See also

actual fun readStandardErrorWithTimeout(buffer: ByteArray, offset: Int, count: Int, timeoutMillis: Int): Int
actual fun readStandardErrorWithTimeout(buffer: ByteArray, offset: Int, count: Int, timeoutMillis: Int): Int