File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
google-http-client/src/main/java/com/google/api/client/http Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 23
23
import com .google .api .client .util .StreamingContent ;
24
24
import com .google .api .client .util .StringUtils ;
25
25
26
+ import com .google .common .util .concurrent .ThreadFactoryBuilder ;
26
27
import io .opencensus .common .Scope ;
27
28
import io .opencensus .contrib .http .util .HttpTraceAttributeConstants ;
28
29
import io .opencensus .trace .AttributeValue ;
@@ -1200,14 +1201,15 @@ public HttpResponse call() throws Exception {
1200
1201
/**
1201
1202
* {@link Beta} <br/>
1202
1203
* Executes this request asynchronously using {@link #executeAsync(Executor)} in a single separate
1203
- * thread using {@link Executors#newSingleThreadExecutor( )}.
1204
+ * thread using {@link Executors#newFixedThreadPool(1 )}.
1204
1205
*
1205
1206
* @return A future for accessing the results of the asynchronous request.
1206
1207
* @since 1.13
1207
1208
*/
1208
1209
@ Beta
1209
1210
public Future <HttpResponse > executeAsync () {
1210
- return executeAsync (Executors .newSingleThreadExecutor ());
1211
+ return executeAsync (
1212
+ Executors .newFixedThreadPool (1 , new ThreadFactoryBuilder ().setDaemon (true ).build ()));
1211
1213
}
1212
1214
1213
1215
/**
You can’t perform that action at this time.
0 commit comments