Skip to content

Publisher javadocs example fails to compile #1652

Description

@JaysonRaymond

From http://googlecloudplatform.github.io/google-cloud-java/0.9.2/apidocs/com/google/cloud/pubsub/spi/v1/Publisher.html

(Checked both 0.9.0-alpha or 0.9.2-alpha):

:
List<RpcFuture> results = new ArrayList<>();
:
Futures.addCallback(
Futures.allAsList(results),
:

Futures.allAsList & Futures.addCallback both require a ListenableFuture, not an RpcFuture.

The Rpc implementation is coming from Gax-0.1.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions