File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
data/src/main/java/com/threegap/bitnagil/data/onboarding/repositoryImpl Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import com.threegap.bitnagil.domain.onboarding.model.OnBoardingAbstract
99import com.threegap.bitnagil.domain.onboarding.model.OnBoardingRecommendRoutine
1010import com.threegap.bitnagil.domain.onboarding.model.OnBoardingRecommendRoutineEvent
1111import com.threegap.bitnagil.domain.onboarding.repository.OnBoardingRepository
12+ import kotlinx.coroutines.channels.BufferOverflow
1213import kotlinx.coroutines.flow.Flow
1314import kotlinx.coroutines.flow.MutableSharedFlow
1415import kotlinx.coroutines.flow.asSharedFlow
@@ -63,6 +64,9 @@ class OnBoardingRepositoryImpl @Inject constructor(
6364 }
6465 }
6566
66- private val _onBoardingRecommendRoutineEventFlow = MutableSharedFlow <OnBoardingRecommendRoutineEvent >()
67+ private val _onBoardingRecommendRoutineEventFlow = MutableSharedFlow <OnBoardingRecommendRoutineEvent >(
68+ extraBufferCapacity = 1 ,
69+ onBufferOverflow = BufferOverflow .DROP_OLDEST ,
70+ )
6771 override suspend fun getOnBoardingRecommendRoutineEventFlow (): Flow <OnBoardingRecommendRoutineEvent > = _onBoardingRecommendRoutineEventFlow .asSharedFlow()
6872}
You can’t perform that action at this time.
0 commit comments