Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase interactor lifecycleFlow buffer size #641

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import javax.inject.Inject
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharedFlow
import kotlinx.coroutines.rx2.asObservable
Expand All @@ -42,7 +43,8 @@ public abstract class Interactor<P : Any, R : Router<*>>() : InteractorType, Rib
@Inject public lateinit var injectedPresenter: P

@CoreFriendModuleApi public var actualPresenter: P? = null
private val _lifecycleFlow = MutableSharedFlow<InteractorEvent>(1, 0, BufferOverflow.DROP_OLDEST)
private val _lifecycleFlow =
MutableSharedFlow<InteractorEvent>(1, Channel.UNLIMITED, BufferOverflow.DROP_OLDEST)
public open val lifecycleFlow: SharedFlow<InteractorEvent>
get() = _lifecycleFlow

Expand Down
Loading