sdk
Toggle table of contents
androidJvm
Target filter
androidJvm
Switch theme
Search in API
Skip to content
sdk
sdk
/
com.m8test.script.core.api.http.common
/
ByteReadChannel
/
discard
discard
abstract
fun
discard
(
scope
:
CoroutineScope
,
max
:
Long
)
:
Deferred
<
Long
>
异步丢弃(跳过)此通道中最多
max
个字节。
Return
一个
Deferred
对象,其未来结果是实际被丢弃的字节数 (
Long
)。
Parameters
scope
执行异步读取操作的协程作用域。
max
要丢弃的最大字节数。