Application
Simple Robot
的应用.
一个 simbot应用 代表了已经配置完毕的运行时作用域,此作用域内包含了有关事件处理、事件推送的相关内容.
每个 Application 中,应当包括一个 事件处理器 、一些 bot管理器 和一些注册的组件。
Author
ForteScarlet
Types
Link copied to clipboard
interface Environment
当前应用的组件环境内容。
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Extensions
Link copied to clipboard
fun <A : Application> CoroutineScope.applicationLauncher(create: suspend () -> A): ApplicationLauncher<A>
通过一个协程作用域并提供构建函数来得到一个 ApplicationLauncher 实例。
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
提供 CoroutineScope 和构建 Flow 的函数 flowFactory 来构建 Items.
Link copied to clipboard
inline fun <T> CoroutineScope.itemsByFlow(crossinline flowFactory: (Items.PreprocessingProperties) -> Flow<T>): Items<T>
提供 CoroutineScope 和构建 Flow 的函数 flowFactory 来构建 Items.
Link copied to clipboard
inline fun <T> CoroutineScope.produceItems(context: CoroutineContext = EmptyCoroutineContext, capacity: Int = 0, crossinline block: suspend ProducerScope<T>.(Items.PreprocessingProperties) -> Unit): Items<T>
通过 produce 构建 ChannelIterator 来得到一个 Items 实例。