public Task<T>
Simple request invocation interface.
It is mostly the same as Retrofit.Call.
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
cancel()
Cancel the task.
|
void |
enqueue(Task.Callback<? super T> callback)
Run task and notify callback of result or error.
|
boolean |
isCanceled()
True if
cancel was called. |
boolean |
isExecuted()
|
T |
run()
Execute synchronously and return the result.
|
T run()
Execute synchronously and return the result.
IOException - if a problem occurred in execution.void enqueue(@NotNull
Task.Callback<? super T> callback)
Run task and notify callback of result or error.
callback - void cancel()
Cancel the task.