launch

expect fun launch(klass: KClass<out Application>, rawArgs: Array<out String> = emptyArray())

Called from the program's main entry point to start a Glok Application.

This must be called only once. If you wish to start another application after the first application ends, then use Application.restart.

In general, you should make no assumptions about when (or if) this method returns. If you wish to perform clean-up when your application ends, override Application.stop.

FYI, Glok uses the current thread as glok's event loop, and this method returns when the application ends. However, this may change in later versions of Glok.

actual fun launch(klass: KClass<out Application>, rawArgs: Array<out String>)
fun launch(klass: Class<out Application>, rawArgs: Array<out String> = emptyArray())

A convenience function for those using Java rather than Kotlin. It launches an application using a Java Class, rather than a Kotlin KClass.


actual fun launch(klass: KClass<out Application>, rawArgs: Array<out String>)