GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Change signature of RPCFuture.addCallback to allow lambdas as arguments · Issue #1732 · googleapis/google-cloud-java

Change signature of RPCFuture.addCallback to allow lambdas as arguments #1732

New issue
Copy link
New issue
Copy link
Closed
Closed
Change signature of RPCFuture.addCallback to allow lambdas as arguments#1732
Copy link
Assignees
garrettjonesgoogle
Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@viniciusccarvalho
viniciusccarvalho
opened on Mar 10, 2017
Issue body actions

Hi, it's nice to have a callback mechanism on the latest pubsub client library, but it would be even better if the RPCFuture.addCallback supported functional interfaces instead of an interface with two methods to process errors and success.

so if instead of addCallback(RpcFutureCallback)

public void subscribe(Consumer success, Consumer<? super Throwable> error){

One could just invoke the subscribe with lambdas expressions.

I know Consumer is Java 8 construct, but any functional interface with an interface like

Foo{

void apply(T t)

}

would work

Activity

  1. garrettjonesgoogle
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Mar 10, 2017
  2. garrettjonesgoogle commented on Mar 14, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Mar 14, 2017
    Contributor
    More actions

    Unfortunately, we probably aren't going to do this. We are trying to match the patterns of ListenableFuture from Guava, which is well-established and widely understood. When we migrate to Java 8, we will fully use the available Java 8 constructs.

  3. garrettjonesgoogle
    added
    breaking change
    on Mar 14, 2017
  4. garrettjonesgoogle commented on May 30, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on May 30, 2017
    Contributor
    More actions

    Closing out issue now - we appreciate your suggestions, keep them coming!

  5. garrettjonesgoogle
    closed this as completedon May 30, 2017
  6. JustinBeckwith
    assigned
    garrettjonesgoogle
    on Feb 1, 2021
  7. suztomo
    added 3 commits that reference this issue on Feb 1, 2023

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    4a6a0a9

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    1e7a97f

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    b68ef1d
  8. meltsufin
    added 2 commits that reference this issue on Dec 22, 2025

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    8906825

    chore(main): release 3.21.0 (#1732)

    48266d8
  9. chingor13
    added a commit that references this issue on Jan 6, 2026

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    62c35b7
  10. chingor13
    added 2 commits that reference this issue on Jan 22, 2026

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    b90025d

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    ebc9bcf
  11. suztomo
    added 2 commits that reference this issue on Mar 11, 2026

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    cba7942

    chore(main): release 3.21.0 (googleapis#1732)

    88a6899
  12. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    4cf8512

    chore(main): release 2.22.0 (googleapis#1732)

    35de2c5
  13. suztomo
    added 2 commits that reference this issue on Mar 30, 2026

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    d13242a

    chore(main): release 0.128.12-SNAPSHOT (#1732)

    1ffdae3
  14. lqiu96
    added 2 commits that reference this issue on Apr 1, 2026

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    83baf64

    chore(main): release 0.128.12-SNAPSHOT (#1732)

    233353e
  15. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore(main): release 1.125.2 (#1732)

    629ed33

    chore(main): release 1.125.2 (#1732)

    3d67774
  16. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…

    e61cb9f

    chore(main): release 2.22.1-SNAPSHOT (googleapis#1732)

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

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.