mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-01 17:43:03 +00:00
initialization fixes
This commit is contained in:
1 parent
6f174cae1d
commit
871b27f37d
2 files changed
+45
-47
No files matched your search
+2
-2
@@ -10,9 +10,9 @@ import kotlinx.coroutines.Dispatchers
|
||||
|
||||
class FlowState<T>(
|
||||
initial: T,
|
||||
internalScope: CoroutineScope = CoroutineScope(Dispatchers.Main)
|
||||
internalScope: CoroutineScope = CoroutineScope(Dispatchers.Default)
|
||||
) : MutableState<T>,
|
||||
SpecialMutableStateFlow.Default<T>(initial, internalScope) {
|
||||
SpecialMutableStateFlow<T>(initial, internalScope) {
|
||||
private var internalValue: T = initial
|
||||
override var value: T
|
||||
get() = internalValue
|
||||
|
||||
Reference in new issue
Block a user