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

jvmMain.io.mths.swing.flow.binding.shorthand.CommonBindings.kt Maven / Gradle / Ivy

The newest version!
package io.mths.swing.flow.binding.shorthand

import io.mths.swing.flow.lifecycle.Lifecycle
import io.mths.swing.flow.swingFlow
import kotlinx.coroutines.CoroutineScope

fun  Type.binds(
    lifecycle: Lifecycle,
    init: context (CoroutineScope) Type.() -> Unit
): Type =
    swingFlow(this) {
        bind(lifecycle) {
            init(this@bind, this@binds)
        }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy