Call

interface Call<T>

Represents an API call.

Functions

Link copied to clipboard
abstract suspend fun await(): T

Suspends until the Call completes with either success or failure.

Link copied to clipboard
abstract fun cancel()

Cancels the request, if possible.

Link copied to clipboard
abstract fun enqueue(callback: Callback<T>)

Schedules the request to be executed at some point in the future.

Link copied to clipboard
abstract fun execute(): T

Executes the call on the caller thread.

Inherited functions

Link copied to clipboard
suspend fun <T> Call<T>.await(): T

Suspends until the Call completes with either success or failure.