Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit93e7d18

Browse files
joedjslandelle
authored andcommitted
Support null executor in NettyResponseFuture#addListener,closeAsyncHttpClient#1369 (AsyncHttpClient#1371)
1 parentcbe0685 commit93e7d18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎client/src/main/java/org/asynchttpclient/netty/NettyResponseFuture.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ public void touch() {
258258

259259
@Override
260260
publicListenableFuture<V>addListener(Runnablelistener,Executorexec) {
261+
if (exec ==null) {
262+
exec =Runnable::run;
263+
}
261264
future.whenCompleteAsync((r,v) ->listener.run(),exec);
262265
returnthis;
263266
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp