Skip to content

Commit

Permalink
Small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
horatiu-udrea committed Dec 13, 2024
1 parent 12282bf commit c0e8d67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .idea/fileTemplates/MVI ViewModel.kt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example.android_demo.util

import com.example.android_demo.I
import com.example.android_demo.MVIViewModel
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.MutableStateFlow
Expand All @@ -27,7 +26,7 @@ class TestViewModelScope<S, I : IntentHandler<S, I, *>>(private val testScope: T
fun sendIntent(intent: I) = viewModel.sendIntent(intent)
}

suspend fun <S, T : SimpleIntentHandler<S, I, D>, D> testIntent(
suspend fun <S, I, T : SimpleIntentHandler<S, I, D>, D> testIntent(
intent: T,
dependencies: D,
initialState: S
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import kotlin.reflect.KClass
* @property intentToCancel The class of the intent to be cancelled.
*/
public abstract class CancelIntent<State, Intent : IntentHandler<State, Intent, Dependencies>, Dependencies>(
private val intentToCancel: KClass<Intent>
private val intentToCancel: KClass<out Intent>
) : IntentHandler<State, Intent, Dependencies> {
override suspend fun handle(
intent: Intent,
Expand Down

0 comments on commit c0e8d67

Please sign in to comment.