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

commonMain.cinematic.LazyScene.kt Maven / Gradle / Ivy

There is a newer version: 3.0.15
Show newest version
@file:JsExport
@file:Suppress("NON_EXPORTABLE_TYPE")
@file:OptIn(ExperimentalJsExport::class)

package cinematic

import kase.LazyState
import kase.Pending
import kase.Success
import kotlin.js.ExperimentalJsExport
import kotlinx.JsExport
import kotlinx.JsExportIgnore
import kotlin.js.JsName

abstract class LazyScene(state: LazyState) : Scene>(state) {
    @JsExportIgnore
    constructor() : this(Pending)

    @JsExportIgnore
    constructor(state: S) : this(Success(state))

    open fun deInitialize() {
        ui.value = Pending
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy