Skip to content

Commit

Permalink
Rename coroutineScope to screenModelScope as suggested in #227
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSrSouza committed Oct 15, 2023
1 parent 1667c0b commit 0c05218
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow

@Deprecated(
message = "Use 'screenModelScope' instead. Will be removed in 1.0.0.",
replaceWith = ReplaceWith("screenModelScope")
)
public val ScreenModel.coroutineScope: CoroutineScope
get() = screenModelScope

public val ScreenModel.screenModelScope: CoroutineScope
get() = ScreenModelStore.getOrPutDependency(
screenModel = this,
name = "ScreenModelCoroutineScope",
Expand Down

0 comments on commit 0c05218

Please sign in to comment.