optimize imports

This commit is contained in:
InsanusMokrassar 2021-11-05 15:49:39 +06:00
parent bbe5320312
commit 1171a717fe
5 changed files with 5 additions and 8 deletions

View File

@ -2,8 +2,6 @@
package dev.inmo.micro_utils.common package dev.inmo.micro_utils.common
import kotlin.jvm.JvmInline
private inline fun <T> getObject( private inline fun <T> getObject(
additional: MutableList<T>, additional: MutableList<T>,
iterator: Iterator<T> iterator: Iterator<T>

View File

@ -1,6 +1,7 @@
package dev.inmo.micro_utils.fsm.common package dev.inmo.micro_utils.fsm.common
import dev.inmo.micro_utils.coroutines.* import dev.inmo.micro_utils.coroutines.launchSafelyWithoutExceptions
import dev.inmo.micro_utils.coroutines.subscribeSafelyWithoutExceptions
import kotlinx.coroutines.* import kotlinx.coroutines.*
/** /**

View File

@ -1,6 +1,6 @@
package dev.inmo.micro_utils.fsm.common package dev.inmo.micro_utils.fsm.common
import kotlinx.coroutines.flow.* import kotlinx.coroutines.flow.Flow
interface StatesManager<T : State> { interface StatesManager<T : State> {
val onChainStateUpdated: Flow<Pair<T, T>> val onChainStateUpdated: Flow<Pair<T, T>>

View File

@ -1,7 +1,8 @@
package dev.inmo.micro_utils.fsm.common.dsl package dev.inmo.micro_utils.fsm.common.dsl
import dev.inmo.micro_utils.fsm.common.* import dev.inmo.micro_utils.fsm.common.*
import dev.inmo.micro_utils.fsm.common.managers.* import dev.inmo.micro_utils.fsm.common.managers.DefaultStatesManager
import dev.inmo.micro_utils.fsm.common.managers.InMemoryDefaultStatesManagerRepo
import kotlin.reflect.KClass import kotlin.reflect.KClass
class FSMBuilder<T : State>( class FSMBuilder<T : State>(

View File

@ -1,10 +1,7 @@
package dev.inmo.micro_utils.fsm.common.managers package dev.inmo.micro_utils.fsm.common.managers
import dev.inmo.micro_utils.fsm.common.State import dev.inmo.micro_utils.fsm.common.State
import dev.inmo.micro_utils.fsm.common.StatesManager
import kotlinx.coroutines.flow.* import kotlinx.coroutines.flow.*
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
/** /**
* Creates [DefaultStatesManager] with [InMemoryDefaultStatesManagerRepo] * Creates [DefaultStatesManager] with [InMemoryDefaultStatesManagerRepo]