This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | sealed class BaseUiState<out R> { | |
| data class Success<R>(val data: R) : BaseUiState<R>() | |
| data class Error(val error: Any) : BaseUiState<Nothing>() | |
| data class Loading(val isLoading: Boolean) : BaseUiState<Nothing>() | |
| } | |
| sealed class BaseResult<out R : Any, out E : Any> { | |
| data class Success<R : Any>(val data: R) : BaseResult<R, Nothing>() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import kotlinx.coroutines.CoroutineStart.LAZY | |
| import kotlinx.coroutines.Deferred | |
| import kotlinx.coroutines.async | |
| import kotlinx.coroutines.cancelAndJoin | |
| import kotlinx.coroutines.coroutineScope | |
| import kotlinx.coroutines.sync.Mutex | |
| import kotlinx.coroutines.sync.withLock | |
| import kotlinx.coroutines.yield | |
| import java.util.concurrent.atomic.AtomicReference | |
| import kotlin.DeprecationLevel.ERROR |