We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6002588 commit 8ba86ceCopy full SHA for 8ba86ce
onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/core/http/RetryingHttpClient.kt
@@ -1,6 +1,5 @@
1
package org.onebusaway.core.http
2
3
-import com.google.common.util.concurrent.MoreExecutors
4
import java.io.IOException
5
import java.time.Clock
6
import java.time.Duration
@@ -116,8 +115,10 @@ private constructor(
116
115
executeWithRetries(request, requestOptions)
117
}
118
},
119
- MoreExecutors.directExecutor()
120
- )
+ ) {
+ // Run in the same thread.
+ it.run()
121
+ }
122
.thenCompose(Function.identity())
123
124
0 commit comments