05nelsonm / kmp-process

Process implementation for Kotlin Multiplatform
Apache License 2.0
30 stars 1 forks source link

Add `Process.exitCodeOrNull()` function #110

Closed 05nelsonm closed 5 months ago

05nelsonm commented 5 months ago

Only Jvm throws IllegalStateException when checking underlying platform's process exit code. Js and Native implementations can return null and this will be beneficial performance wise as we are not creating a stack trace every time...