Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
make responseFuture volatile because it can be written by the autoflu…
…sh thread and read by the user thread during cancel()
  • Loading branch information
igorbernstein2 committed Sep 9, 2024
commit b20824fbd9c000e92ea6db45e94dc9eb38a6f946
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ private static class Batch<ElementT, ElementResultT, RequestT, ResponseT> {
private long totalThrottledTimeMs = 0;
private BatchResource resource;

private ApiFuture<ResponseT> responseFuture;
private volatile ApiFuture<ResponseT> responseFuture;

private Batch(
RequestT prototype,
Expand Down