RetrofitHttpResponseResultX<T> extension
Converts a Retrofit Future<HttpResponse<T>> (returned when you opt-in to
the full response object) into a Future<Result<T>>.
- on
-
- Future<
HttpResponse< T> >
- Future<
Methods
-
toResult(
) → Future< Result< T> > -
Available on Future<
Awaits the future, then unwraps theHttpResponse< , provided by the RetrofitHttpResponseResultX extensionT> >datafield of theHttpResponse.