From 9ced447055ab09d27602b55da14152348d0743ea Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 28 May 2020 14:03:25 +0800 Subject: [PATCH] Remove `@ExperimentalCoroutinesApi` since `Flow.fold` is now stable --- .../commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt index c97275095..9da5c4e3f 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt @@ -17,7 +17,6 @@ package net.mamoe.mirai.message.data -import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.fold import net.mamoe.mirai.contact.Contact @@ -208,7 +207,6 @@ interface Message { // must be interface. Don't consider any changes. @MiraiExperimentalAPI @JvmSynthetic -@ExperimentalCoroutinesApi suspend inline operator fun Message.plus(another: Flow): MessageChain = another.fold(this) { acc, it -> acc + it }.asMessageChain()