mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 08:50:15 +08:00
Update Events.md
This commit is contained in:
parent
d3febb3cf3
commit
490198e70c
@ -106,9 +106,7 @@ channel = channel.parentJob(job)
|
||||
|
||||
在 Kotlin,可以使用如下扩展快速在 GlobalEventChannel 创建一个指定协程作用域下的事件通道。
|
||||
> ```kotlin
|
||||
> ```kotlin
|
||||
> > fun CoroutineScope.globalEventChannel(coroutineContext: CoroutineContext = EmptyCoroutineContext): EventChannel<Event> = GlobalEventChannel.parentScope(this, coroutineContext)
|
||||
> > ```
|
||||
> fun CoroutineScope.globalEventChannel(coroutineContext: CoroutineContext = EmptyCoroutineContext): EventChannel<Event> = GlobalEventChannel.parentScope(this, coroutineContext)
|
||||
> ```
|
||||
|
||||
```kotlin
|
||||
@ -467,4 +465,4 @@ reply("复读模式结束")
|
||||
|
||||
> 下一步,[Messages](Messages.md)
|
||||
>
|
||||
> [回到 Mirai 文档索引](README.md)
|
||||
> [回到 Mirai 文档索引](README.md)
|
||||
|
Loading…
Reference in New Issue
Block a user