ribesg
03/01/2019, 2:05 PMsvyatoslav.scherbina
03/01/2019, 2:40 PMAny
).ribesg
03/01/2019, 2:45 PMfun <T> Deferred<T>.subscribe(
onSuccess: (T) -> Unit,
onError: (Throwable) -> Unit
): DisposableHandle =
invokeOnCompletion {
if (it == null) {
onSuccess(getCompleted())
} else {
onError(it)
}
}
in a file named RxDeferred.kt
got compiled to open class RxDeferredKt : KotlinBase {
open class func subscribe(_ receiver: Kotlinx_coroutines_core_nativeDeferred, onSuccess: @escaping (Any?) -> KotlinUnit, onError: @escaping (KotlinThrowable) -> KotlinUnit) -> Kotlinx_coroutines_core_nativeDisposableHandle
}
?svyatoslav.scherbina
03/01/2019, 2:46 PMDeferred
is interface
.ribesg
03/01/2019, 2:46 PM