launchApplication
inline suspend fun <A : Application, C : AbstractApplicationBuilder, L : ApplicationLauncher<A>, AER : ApplicationEventRegistrar, DC : EventDispatcherConfiguration> launchApplication(factory: ApplicationFactory<A, C, L, AER, DC>, crossinline configurer: ApplicationFactoryConfigurer<C, AER, DC>.() -> Unit = {}): A(source)
构建一个 Application 并启动它。
val app = launchApplication(Simple) {
// ...
}
Content copied to clipboard