Changing presenterScope to lateinit

This commit is contained in:
Jays2Kings 2021-04-28 04:01:37 -04:00
parent 43b42f8d54
commit bd9069b585

View File

@ -6,7 +6,7 @@ import kotlinx.coroutines.Job
import kotlinx.coroutines.cancel
open class BaseCoroutinePresenter {
var presenterScope = CoroutineScope(Job() + Dispatchers.Default)
lateinit var presenterScope: CoroutineScope
open fun onCreate() {
presenterScope = CoroutineScope(Job() + Dispatchers.Default)