egorand
10/14/2018, 6:22 PMinterface Source : Closeable {
@Throws(IOException::class)
fun read(sink: Buffer, byteCount: Long): Long
}
I’m declaring SuspendingSource
like this:
interface SuspendingSource : Source {
@Throws(IOException::class)
override suspend fun read(sink: Buffer, byteCount: Long): Long
}
which doesn’t compile because of Conflicting overloads
. Is it forbidden to override non-suspend functions with suspend ones?Dominaezzz
10/14/2018, 6:43 PMSource.read
doesn't not know to suspend.egorand
10/14/2018, 6:47 PMBurkhard
10/14/2018, 11:42 PM