There are two functions to be used as the entry point for a CMP desktop application:
| fun | usage |
|---|---|
application() |
fun main() = application { ... } |
awaitApplication() |
suspend fun main() = awaitApplication { ... } |
Specifically, what is the difference between application(exitProcessOnExit = false) {...} and awaitApplication {...}
What is the use case for awaitApplication()?