Skip to content

Commit

Permalink
feat: Blocking pull subscribe is AutoCloseable (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
palmere-google committed Jul 15, 2021
1 parent 5bae5ec commit fc52221
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -18,12 +18,11 @@

import com.google.api.core.ApiFuture;
import com.google.cloud.pubsublite.SequencedMessage;
import java.io.Closeable;
import java.util.Optional;
import javax.annotation.concurrent.ThreadSafe;

@ThreadSafe
public interface BlockingPullSubscriber extends Closeable {
public interface BlockingPullSubscriber extends AutoCloseable {

/**
* Returns a {@link ApiFuture} that will be completed when there are messages available.
Expand Down

0 comments on commit fc52221

Please sign in to comment.