Creatable<T>.createAsync 方法
定义
重载
createAsync() |
Puts the request into the queue and allow the HTTP client to execute it when system resources are available.
|
createAsync(final ServiceCallback<T> callback) |
Puts the request into the queue and allow the HTTP client to execute it when system resources are available.
|
createAsync()
Puts the request into the queue and allow the HTTP client to execute it when system resources are available.
public Observable<Indexable> createAsync()
返回
Observable<Indexable>
an observable of the request
createAsync(final ServiceCallback<T> callback)
Puts the request into the queue and allow the HTTP client to execute it when system resources are available.
public ServiceFuture<T> createAsync(final ServiceCallback<T> callback)
参数
- callback
- final ServiceCallback<T>
the callback to handle success and failure
返回
ServiceFuture<T>
a handle to cancel the request