mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-16 18:07:17 +08:00
[core] Add default AbstractExternalResource.input
implementation
This commit is contained in:
parent
951e835a26
commit
2eb2c3acd0
@ -9,7 +9,9 @@
|
||||
|
||||
package net.mamoe.mirai.utils
|
||||
|
||||
import io.ktor.utils.io.core.*
|
||||
import io.ktor.utils.io.errors.*
|
||||
import io.ktor.utils.io.streams.*
|
||||
import kotlinx.atomicfu.atomic
|
||||
import kotlinx.coroutines.CompletableDeferred
|
||||
import kotlinx.coroutines.Deferred
|
||||
@ -254,4 +256,9 @@ public constructor(
|
||||
final override fun close() {
|
||||
holder.close()
|
||||
}
|
||||
|
||||
@MiraiExperimentalApi
|
||||
override fun input(): Input {
|
||||
return inputStream().asInput()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user