`readKeyOrNull` throws exception on timeout rather than returning null · Issue #256 · ajalt/mordant · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be my fault? I believe I was changing these "or null" codepaths to avoid using exceptions in the timeout case prior to 3.0. Maybe I didn't do a fully comprehensive job?
This is Windows, as you can see from the trace. Works fine on macOS.
Exception in thread "main" java.lang.RuntimeException: Timeout reading from console input
at com.github.ajalt.mordant.terminal.terminalinterface.jna.TerminalInterfaceJnaWindows.readRawEvent(TerminalInterface.jna.windows.kt:278)
at com.github.ajalt.mordant.terminal.terminalinterface.TerminalInterfaceWindows.readInputEvent(TerminalInterface.windows.kt:85)
at com.github.ajalt.mordant.input.RawModeScope.readKeyOrNull-LRDsOJo(RawMode.kt:118)
at com.jakewharton.mosaic.MosaicKt$readRawModeKeys$1.invokeSuspend(mosaic.kt:157)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
The text was updated successfully, but these errors were encountered:
This might be my fault? I believe I was changing these "or null" codepaths to avoid using exceptions in the timeout case prior to 3.0. Maybe I didn't do a fully comprehensive job?
This is Windows, as you can see from the trace. Works fine on macOS.
The text was updated successfully, but these errors were encountered: