Skip to content

Commit 2495979

Browse files
committed
1 parent 7ebb197 commit 2495979

File tree

2 files changed

+2
-2
lines changed
  • snapshots/components/onebot/simbot-component-onebot-v11
    • simbot-component-onebot-v11-core/love.forte.simbot.component.onebot.v11.core.bot/-one-bot-bot
    • simbot-component-onebot-v11-event/love.forte.simbot.component.onebot.v11.event/-raw-event

2 files changed

+2
-2
lines changed

snapshots/components/onebot/simbot-component-onebot-v11/simbot-component-onebot-v11-core/love.forte.simbot.component.onebot.v11.core.bot/-one-bot-bot/init-configuration.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
<div class="cover ">
120120
<h1 class="cover"><span>init</span><wbr><span><span>Configuration</span></span></h1>
121121
</div>
122-
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":simbot-component-onebot-v11:simbot-component-onebot-v11-core/commonMain"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><a href="../../../../simbot-component-onebot-common/love.forte.simbot.component.onebot.common.annotations/-experimental-one-bot-a-p-i/index.html"><span class="token annotation builtin">ExperimentalOneBotAPI</span></a></div></div><span class="token keyword">abstract </span><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="init-configuration.html"><span class="token function">initConfiguration</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html">Boolean</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/simple-robot/simbot-component-onebot/tree/dev/main/simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/bot/OneBotBot.kt#L122">source</a>)</span></span></div><p class="paragraph">根据 <a href="configuration.html">configuration</a> 初始化部分配置信息。</p><p class="paragraph">在一些特殊情况下(例如测试或仅需要一些序列器等), 如果希望在不 <a href="start.html">启动</a> bot 就初始化配置信息则使用此函数。</p><p class="paragraph">初始化配置只能执行一次。如果 <a href="is-configuration-initialized.html">isConfigurationInitialized</a><code class="lang-kotlin">true</code> 则会返回 <code class="lang-kotlin">false</code>。 同一时间只会有一个 <a href="init-configuration.html">initConfiguration</a> 被执行。如果出现竞争则会挂起, 直到其他竞争者完成初始化或出现异常。 如果其他竞争者完成初始化,则会直接返回 <code class="lang-kotlin">false</code>,不会重复初始化。</p><p class="paragraph"><a href="start.html">start</a> 中也会使用此函数。</p><p class="paragraph">NOTE: 未来标准库 <span data-unresolved-link="love.forte.simbot.bot/Bot///PointingToDeclaration/">Bot</span> 中添加了 <code class="lang-kotlin">init</code> 相关函数和属性后会被废弃。 参考 <a href="https://github.com/simple-robot/simpler-robot/issues/1071">#1071</a></p><h3 class="">status</h3><p class="paragraph">初始化状态有三个阶段:未初始化、正在初始化和完成初始化。 根据三个状态的不同,会影响 <a href="is-configuration-initialized.html">isConfigurationInitialized</a><a href="is-configuration-initializing.html">isConfigurationInitializing</a> 的值。</p><table><thead><tr><th>status</th><th><a href="is-configuration-initializing.html">isConfigurationInitializing</a></th><th><a href="is-configuration-initialized.html">isConfigurationInitialized</a></th></tr></thead><tbody><tr><td>未初始化</td><td><code class="org.jetbrains.dokka.pages.commenttable@617f790d lang-kotlin">false</code></td><td><code class="org.jetbrains.dokka.pages.commenttable@617f790d lang-kotlin">false</code></td></tr><tr><td>初始化中</td><td><code class="org.jetbrains.dokka.pages.commenttable@617f790d lang-kotlin">true</code></td><td><code class="org.jetbrains.dokka.pages.commenttable@617f790d lang-kotlin">false</code></td></tr><tr><td>已初始化</td><td><code class="org.jetbrains.dokka.pages.commenttable@617f790d lang-kotlin">false</code></td><td><code class="org.jetbrains.dokka.pages.commenttable@617f790d lang-kotlin">true</code></td></tr></tbody></table><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">如果已经初始化过了,则不会重复初始化,直接返回 <code class="lang-kotlin">false</code>。 否则在成功初始化后返回 <code class="lang-kotlin">true</code></p></span><span class="kdoc-tag"><h4 class="">Since</h4><p class="paragraph">1.8.1</p></span><h4 class="">Throws</h4><div class="table"><div class="table-row" data-filterable-current=":simbot-component-onebot-v11:simbot-component-onebot-v11-core/commonMain" data-filterable-set=":simbot-component-onebot-v11:simbot-component-onebot-v11-core/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-runtime-exception/index.html"><span>Runtime</span><wbr><span><span>Exception</span></span></a></div></span></div><div><div class="title"><p class="paragraph">初始化过程中出现的任何非预期异常。</p></div></div></div></div></div></div></div>
122+
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":simbot-component-onebot-v11:simbot-component-onebot-v11-core/commonMain"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><a href="../../../../simbot-component-onebot-common/love.forte.simbot.component.onebot.common.annotations/-experimental-one-bot-a-p-i/index.html"><span class="token annotation builtin">ExperimentalOneBotAPI</span></a></div></div><span class="token keyword">abstract </span><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="init-configuration.html"><span class="token function">initConfiguration</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html">Boolean</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/simple-robot/simbot-component-onebot/tree/dev/main/simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/bot/OneBotBot.kt#L122">source</a>)</span></span></div><p class="paragraph">根据 <a href="configuration.html">configuration</a> 初始化部分配置信息。</p><p class="paragraph">在一些特殊情况下(例如测试或仅需要一些序列器等), 如果希望在不 <a href="start.html">启动</a> bot 就初始化配置信息则使用此函数。</p><p class="paragraph">初始化配置只能执行一次。如果 <a href="is-configuration-initialized.html">isConfigurationInitialized</a><code class="lang-kotlin">true</code> 则会返回 <code class="lang-kotlin">false</code>。 同一时间只会有一个 <a href="init-configuration.html">initConfiguration</a> 被执行。如果出现竞争则会挂起, 直到其他竞争者完成初始化或出现异常。 如果其他竞争者完成初始化,则会直接返回 <code class="lang-kotlin">false</code>,不会重复初始化。</p><p class="paragraph"><a href="start.html">start</a> 中也会使用此函数。</p><p class="paragraph">NOTE: 未来标准库 <span data-unresolved-link="love.forte.simbot.bot/Bot///PointingToDeclaration/">Bot</span> 中添加了 <code class="lang-kotlin">init</code> 相关函数和属性后会被废弃。 参考 <a href="https://github.com/simple-robot/simpler-robot/issues/1071">#1071</a></p><h3 class="">status</h3><p class="paragraph">初始化状态有三个阶段:未初始化、正在初始化和完成初始化。 根据三个状态的不同,会影响 <a href="is-configuration-initialized.html">isConfigurationInitialized</a><a href="is-configuration-initializing.html">isConfigurationInitializing</a> 的值。</p><table><thead><tr><th>status</th><th><a href="is-configuration-initializing.html">isConfigurationInitializing</a></th><th><a href="is-configuration-initialized.html">isConfigurationInitialized</a></th></tr></thead><tbody><tr><td>未初始化</td><td><code class="org.jetbrains.dokka.pages.commenttable@24138e92 lang-kotlin">false</code></td><td><code class="org.jetbrains.dokka.pages.commenttable@24138e92 lang-kotlin">false</code></td></tr><tr><td>初始化中</td><td><code class="org.jetbrains.dokka.pages.commenttable@24138e92 lang-kotlin">true</code></td><td><code class="org.jetbrains.dokka.pages.commenttable@24138e92 lang-kotlin">false</code></td></tr><tr><td>已初始化</td><td><code class="org.jetbrains.dokka.pages.commenttable@24138e92 lang-kotlin">false</code></td><td><code class="org.jetbrains.dokka.pages.commenttable@24138e92 lang-kotlin">true</code></td></tr></tbody></table><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">如果已经初始化过了,则不会重复初始化,直接返回 <code class="lang-kotlin">false</code>。 否则在成功初始化后返回 <code class="lang-kotlin">true</code></p></span><span class="kdoc-tag"><h4 class="">Since</h4><p class="paragraph">1.8.1</p></span><h4 class="">Throws</h4><div class="table"><div class="table-row" data-filterable-current=":simbot-component-onebot-v11:simbot-component-onebot-v11-core/commonMain" data-filterable-set=":simbot-component-onebot-v11:simbot-component-onebot-v11-core/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-runtime-exception/index.html"><span>Runtime</span><wbr><span><span>Exception</span></span></a></div></span></div><div><div class="title"><p class="paragraph">初始化过程中出现的任何非预期异常。</p></div></div></div></div></div></div></div>
123123
</div>
124124
<div class="footer">
125125
<a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a>

0 commit comments

Comments
 (0)