Skip to content

//core/com.petersamokhin.vksdk.core.utils.java/SuspendCallback

SuspendCallback

[jvm]\ abstract class SuspendCallback<T : Any> : Continuation<T> , Callback<T>

Useful for calling suspend functions from Java

Constructors

SuspendCallback [jvm]
fun SuspendCallback()

Types

Name Summary
Companion [jvm]
object Companion

Functions

Name Summary
onError [jvm]
abstract fun onError(error: Throwable)
Called when the network call failed
onResult [jvm]
abstract fun onResult(result: T)
Called when the network call is successful
resumeWith [jvm]
open override fun resumeWith(result: Result<T>)

Properties

Name Summary
context [jvm]
open override val context: CoroutineContext