Hello, I'm a newcomer to Kotlin Flow (and my under...
# coroutines
b
Hello, I'm a newcomer to Kotlin Flow (and my understanding is, unsurprisingly, limited) 🙂 ! I'm wondering if there's an elegant way (operators ?) to capture KeyboardInterrupt (Ctrl+C) exceptions and/or SIGKILL signals (and by scope) ? In order to implement treatments such as graceful reload for example. Thanks for your help 🙂
o
is this in Kotlin/Native, /JS, or /JVM?
b
Kotlin/JVM
o
probably not then, there's no supported signal handling apis on the JVM to begin with
and certainly, not SIGKILL, which is impossible to catch: https://en.wikipedia.org/wiki/Signal_(IPC)#SIGKILL
b
Thank you for this information on JVM signals, in addition to taking SIGKILL as a bad example ^^