All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.polywrap.configBuilder.BuilderDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.10.4
Show newest version
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()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy