Commit 25b162a0 authored by Him188's avatar Him188

Fix warning

parent 9fe26540
@file:Suppress("EXPERIMENTAL_API_USAGE")
package demo.gentleman package demo.gentleman
import kotlinx.coroutines.* import kotlinx.coroutines.*
import kotlinx.serialization.Serializable import kotlinx.serialization.Serializable
import kotlinx.serialization.UnstableDefault
import kotlinx.serialization.json.Json import kotlinx.serialization.json.Json
import net.mamoe.mirai.contact.Contact import net.mamoe.mirai.contact.Contact
import net.mamoe.mirai.message.data.Image import net.mamoe.mirai.message.data.Image
...@@ -15,7 +16,6 @@ class GentleImage(val contact: Contact, val keyword: String) { ...@@ -15,7 +16,6 @@ class GentleImage(val contact: Contact, val keyword: String) {
val seImage: Deferred<Image> by lazy { getImage(1) } val seImage: Deferred<Image> by lazy { getImage(1) }
@UseExperimental(UnstableDefault::class)
fun getImage(r18: Int): Deferred<Image> { fun getImage(r18: Int): Deferred<Image> {
return GlobalScope.async { return GlobalScope.async {
withTimeoutOrNull(20 * 1000) { withTimeoutOrNull(20 * 1000) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment