Package com.pexip.sdk.api
Interface Call
-
-
Method Summary
Modifier and Type Method Description abstract Tawait()Suspends until the Call completes with either success or failure. abstract Texecute()Executes the call on the caller thread. abstract Unitenqueue(Callback<T> callback)Schedules the request to be executed at some point in the future. abstract Unitcancel()Cancels the request, if possible. -
-
Method Detail
-
await
abstract T await()
Suspends until the Call completes with either success or failure.
- Returns:
successful response body
-
execute
@Deprecated(message = "Use suspending await() instead.", level = DeprecationLevel.WARNING) abstract T execute()
Executes the call on the caller thread.
-
enqueue
@Deprecated(message = "Use suspending await() instead.", level = DeprecationLevel.WARNING) abstract Unit enqueue(Callback<T> callback)
Schedules the request to be executed at some point in the future.
- Parameters:
callback- a callback to invoke on completion
-
cancel
@Deprecated(message = "Use suspending await() instead.", level = DeprecationLevel.WARNING) abstract Unit cancel()
Cancels the request, if possible.
-
-
-
-