Skip to content
Draft
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicInteger;

/**
Expand Down Expand Up @@ -162,8 +163,9 @@
}

@Override
public V get(long timeout, TimeUnit unit) {
throw new UnsupportedOperationException("Get timeout is unsupported. Use request timeout instead.");
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
listenerCount.incrementAndGet();
return super.get(timeout, unit);

Check warning on line 168 in tchannel-core/src/main/java/com/uber/tchannel/api/TFuture.java

View check run for this annotation

Codecov / codecov/patch

tchannel-core/src/main/java/com/uber/tchannel/api/TFuture.java#L167-L168

Added lines #L167 - L168 were not covered by tests
}

@Override
Expand Down