Deprecate MainScope

This commit is contained in:
Mygod
2019-04-14 10:24:30 +08:00
parent 5d3ec351c5
commit f034abfa07
2 changed files with 8 additions and 22 deletions

View File

@@ -1,14 +0,0 @@
package be.mygod.vpnhotspot.util
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
interface MainScope : CoroutineScope {
class Supervisor : MainScope {
override val job = SupervisorJob()
}
val job: Job
override val coroutineContext get() = Dispatchers.Main + job
}