mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-03 06:10:08 +08:00
Remove @ExperimentalCoroutinesApi
since Flow.fold
is now stable
This commit is contained in:
parent
5c7dff223c
commit
9ced447055
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
package net.mamoe.mirai.message.data
|
package net.mamoe.mirai.message.data
|
||||||
|
|
||||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
|
||||||
import kotlinx.coroutines.flow.Flow
|
import kotlinx.coroutines.flow.Flow
|
||||||
import kotlinx.coroutines.flow.fold
|
import kotlinx.coroutines.flow.fold
|
||||||
import net.mamoe.mirai.contact.Contact
|
import net.mamoe.mirai.contact.Contact
|
||||||
@ -208,7 +207,6 @@ interface Message { // must be interface. Don't consider any changes.
|
|||||||
|
|
||||||
@MiraiExperimentalAPI
|
@MiraiExperimentalAPI
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
@ExperimentalCoroutinesApi
|
|
||||||
suspend inline operator fun Message.plus(another: Flow<Message>): MessageChain =
|
suspend inline operator fun Message.plus(another: Flow<Message>): MessageChain =
|
||||||
another.fold(this) { acc, it -> acc + it }.asMessageChain()
|
another.fold(this) { acc, it -> acc + it }.asMessageChain()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user