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.
MoreExecutors
1 parent 54eb041 commit 505c349Copy full SHA for 505c349
openai-java-core/src/main/kotlin/com/openai/core/http/RetryingHttpClient.kt
@@ -1,6 +1,5 @@
1
package com.openai.core.http
2
3
-import com.google.common.util.concurrent.MoreExecutors
4
import com.openai.core.RequestOptions
5
import com.openai.errors.OpenAIIoException
6
import java.io.IOException
@@ -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