enqueue

abstract fun enqueue(callback: Callback<T>)

Asynchronously send the request and notify callback of its response or if an error occurred talking to the server, creating the request, or processing the response.

Parameters

callback

a non-null object that will be notified when a result is available or an error occurs.

Throws

on a null callback argument.