All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy