awaitInput

expect fun awaitInput(timeoutMs: Int): Boolean(source)

Waits for input to become available on stdin.

Return

true if input is available, false if the timeout was reached.

Parameters

timeoutMs

The maximum time to wait in milliseconds. -1 for infinite.

actual fun awaitInput(timeoutMs: Int): Boolean(source)

Waits for input to become available on stdin.

Return

true if input is available, false if the timeout was reached.

Parameters

timeoutMs

The maximum time to wait in milliseconds. -1 for infinite.