File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 12
12
<description >The Async Http Client Retrofit2 Extras.</description >
13
13
14
14
<properties >
15
- <retrofit2 .version>2.4 .0</retrofit2 .version>
15
+ <retrofit2 .version>2.5 .0</retrofit2 .version>
16
16
<lombok .version>1.16.20</lombok .version>
17
17
</properties >
18
18
Original file line number Diff line number Diff line change 17
17
import lombok .extern .slf4j .Slf4j ;
18
18
import okhttp3 .*;
19
19
import okio .Buffer ;
20
+ import okio .Timeout ;
20
21
import org .asynchttpclient .AsyncCompletionHandler ;
21
22
import org .asynchttpclient .AsyncHttpClient ;
22
23
import org .asynchttpclient .RequestBuilder ;
@@ -167,6 +168,11 @@ public boolean isCanceled() {
167
168
return future != null && future .isCancelled ();
168
169
}
169
170
171
+ @ Override
172
+ public Timeout timeout () {
173
+ return new Timeout ().timeout (executeTimeoutMillis , TimeUnit .MILLISECONDS );
174
+ }
175
+
170
176
@ Override
171
177
public Call clone () {
172
178
return toBuilder ().build ();
You can’t perform that action at this time.
0 commit comments