Update Events.md

This commit is contained in:
Him188 2020-12-29 03:51:10 +08:00 committed by GitHub
parent d3febb3cf3
commit 490198e70c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)