launchApplication
Short variant of launching an application inside a CoroutineScope.
This function is equivalent to:
CoroutineScope.launch {
awaitApplication {
}
}Content copied to clipboard
Don't use GlobalScope.launchApplication {} to launch an application inside the main() function without waiting for it to end: it does not block the main thread, so the application process may stop before any window appears.
Return
the Job running the application, which completes once no active composition is left.
Parameters
content
the application's content, composed against an ApplicationScope inside the launched job.