Revert "Add MiraiConsoleImplementation.isInitialized", postpone to 1.1.0

This reverts commit 8f61943c
This commit is contained in:
Him188 2020-11-26 12:53:23 +08:00
parent ecef9f8c01
commit 3b39be6bdc

View File

@ -185,27 +185,12 @@ public interface MiraiConsoleImplementation : CoroutineScope {
* 可由前端调用, 获取当前的 [MiraiConsoleImplementation] 实例
*
* 必须在 [start] 之后才能使用, 否则抛出 [UninitializedPropertyAccessException]
*
* @see isInitialized
*/
@JvmStatic
@ConsoleFrontEndImplementation
public fun getInstance(): MiraiConsoleImplementation = instance
/**
* [MiraiConsoleImplementation] 已经初始化后返回 `true`
*/
@JvmStatic
@ConsoleFrontEndImplementation
public val isInitialized: Boolean
get() = ::instance.isInitialized
/**
* 由前端调用, 初始化 [MiraiConsole] 实例并启动
*
* @see getInstance
* @see isInitialized
*/
/** 由前端调用, 初始化 [MiraiConsole] 实例并启动 */
@JvmStatic
@ConsoleFrontEndImplementation
@Throws(MalformedMiraiConsoleImplementationError::class)