Skip to content

Commit

Permalink
[core] Add default AbstractExternalResource.input implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Sep 9, 2022
1 parent 951e835 commit 2eb2c3a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -254,4 +256,9 @@ public constructor(
final override fun close() {
holder.close()
}

@MiraiExperimentalApi
override fun input(): Input {
return inputStream().asInput()
}
}

0 comments on commit 2eb2c3a

Please sign in to comment.