mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-26 16:10:11 +08:00
Revert "Add MiraiConsoleImplementation.isInitialized", postpone to 1.1.0
This reverts commit 8f61943c
This commit is contained in:
parent
ecef9f8c01
commit
3b39be6bdc
@ -185,27 +185,12 @@ public interface MiraiConsoleImplementation : CoroutineScope {
|
|||||||
* 可由前端调用, 获取当前的 [MiraiConsoleImplementation] 实例
|
* 可由前端调用, 获取当前的 [MiraiConsoleImplementation] 实例
|
||||||
*
|
*
|
||||||
* 必须在 [start] 之后才能使用, 否则抛出 [UninitializedPropertyAccessException]
|
* 必须在 [start] 之后才能使用, 否则抛出 [UninitializedPropertyAccessException]
|
||||||
*
|
|
||||||
* @see isInitialized
|
|
||||||
*/
|
*/
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
@ConsoleFrontEndImplementation
|
@ConsoleFrontEndImplementation
|
||||||
public fun getInstance(): MiraiConsoleImplementation = instance
|
public fun getInstance(): MiraiConsoleImplementation = instance
|
||||||
|
|
||||||
/**
|
/** 由前端调用, 初始化 [MiraiConsole] 实例并启动 */
|
||||||
* 当 [MiraiConsoleImplementation] 已经初始化后返回 `true`
|
|
||||||
*/
|
|
||||||
@JvmStatic
|
|
||||||
@ConsoleFrontEndImplementation
|
|
||||||
public val isInitialized: Boolean
|
|
||||||
get() = ::instance.isInitialized
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 由前端调用, 初始化 [MiraiConsole] 实例并启动
|
|
||||||
*
|
|
||||||
* @see getInstance
|
|
||||||
* @see isInitialized
|
|
||||||
*/
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
@ConsoleFrontEndImplementation
|
@ConsoleFrontEndImplementation
|
||||||
@Throws(MalformedMiraiConsoleImplementationError::class)
|
@Throws(MalformedMiraiConsoleImplementationError::class)
|
||||||
|
Loading…
Reference in New Issue
Block a user