Move JavaPluginScheduler to net.mamoe.mirai.console.plugin.jvm

This commit is contained in:
Him188 2020-08-22 17:50:36 +08:00
parent 808be4dce1
commit bcd93ab34e
4 changed files with 3 additions and 4 deletions

View File

@ -11,7 +11,7 @@ package net.mamoe.mirai.console.internal.util
import kotlinx.coroutines.*
import kotlinx.coroutines.future.future
import net.mamoe.mirai.console.util.JavaPluginScheduler
import net.mamoe.mirai.console.plugin.jvm.JavaPluginScheduler
import java.util.concurrent.Callable
import java.util.concurrent.CompletableFuture
import java.util.concurrent.Future

View File

@ -18,6 +18,7 @@ import net.mamoe.mirai.console.util.ConsoleExperimentalAPI
/**
* 内建的 Jar (JVM) 插件加载器
*/
@ConsoleExperimentalAPI("classname might change")
public interface JarPluginLoader : CoroutineScope, FilePluginLoader<JvmPlugin, JvmPluginDescription> {
/**
* [JvmPlugin.loadPluginData] 默认使用的实例

View File

@ -11,7 +11,6 @@
package net.mamoe.mirai.console.plugin.jvm
import net.mamoe.mirai.console.util.JavaPluginScheduler
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.EmptyCoroutineContext

View File

@ -10,12 +10,11 @@
@file:JvmMultifileClass
@file:JvmName("ConsoleUtils")
package net.mamoe.mirai.console.util
package net.mamoe.mirai.console.plugin.jvm
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Runnable
import net.mamoe.mirai.console.internal.util.JavaPluginSchedulerImpl
import net.mamoe.mirai.console.plugin.jvm.JavaPlugin
import java.util.concurrent.Callable
import java.util.concurrent.CompletableFuture
import java.util.concurrent.Future