Package com.drake.net.transform

Types

DeferredTransform
Link copied to clipboard
data class DeferredTransform<T, R>(deferred: Deferred<T>, block: (T) -> R)

Functions

transform
Link copied to clipboard
fun <T, R> Deferred<T>.transform(block: (T) -> R): DeferredTransform<T, R>
可以将Deferred返回结果进行转换 blockDeferred执行成功返回结果时执行