commonMain.io.polywrap.configBuilder.BuilderDsl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polywrap-client Show documentation
Show all versions of polywrap-client Show documentation
Polywrap Client for JVM and Android
package io.polywrap.configBuilder
import io.polywrap.client.PolywrapClient
fun configBuilder(configBuilder: ConfigBuilder? = null, configure: ConfigBuilder.() -> Unit): ConfigBuilder {
val builder = configBuilder ?: ConfigBuilder()
return builder.apply(configure)
}
fun polywrapClient(configBuilder: ConfigBuilder? = null, configure: ConfigBuilder.() -> Unit): PolywrapClient {
return configBuilder(configBuilder, configure).build()
}