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

commonMain.com.copperleaf.ballast.undo.UndoScopeImpl.kt Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
package com.copperleaf.ballast.undo

import com.copperleaf.ballast.BallastInterceptorScope
import com.copperleaf.ballast.Queued
import kotlinx.coroutines.CoroutineScope

public class UndoScopeImpl(
    private val interceptorScope: BallastInterceptorScope
) : UndoScope, CoroutineScope by interceptorScope {
    public override suspend fun restoreState(state: State) {
        interceptorScope.sendToQueue(Queued.RestoreState(null, state))
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy