com.pubnub.internal.eventengine.EventEngineManager.kt Maven / Gradle / Ivy
package com.pubnub.internal.eventengine
internal class EventEngineManager, Ee : EventEngine>(
private val eventEngine: Ee,
private val effectDispatcher: EffectDispatcher,
private val eventSink: Sink,
) {
fun addEventToQueue(event: Ev) {
eventSink.add(event)
}
fun start() {
eventEngine.start()
effectDispatcher.start()
}
fun stop() {
eventEngine.stop()
effectDispatcher.stop()
}
}