awaitSubscribersPlugin

fun <S : MVIState, I : MVIIntent, A : MVIAction> awaitSubscribersPlugin(manager: SubscriberManager, minSubs: Int = 1, suspendStore: Boolean = true, timeout: Duration = Duration.INFINITE, name: String = SubscriberManager.Name): StorePlugin<S, I, A>

Installs a new plugin using manager that will start waiting for new subscribers when the store launches. The plugin will wait for minSubs subscribers for a maximum duration of timeout. If suspendStore is true, then the store will not process any MVIIntents while it waits for subscribers. This plugin starts waiting after plugins installed before have finished their StorePlugin.onStart block. By default, cannot be installed multiple times, but name can be overridden to allow that, provided that you do not reuse the manager.