Skip to content

Add a std::function<void()> overload to protobuf generic services.#28275

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_940436469
Draft

Add a std::function<void()> overload to protobuf generic services.#28275
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_940436469

Conversation

@copybara-service

Copy link
Copy Markdown

Add a std::function<void()> overload to protobuf generic services.

This enables the migration of service implementations away from Closure* in an incremental manner by having the std::function<void()> service implementation call the Closure* one, while the Closure* stub implementation calls the std::function<void()> stub implementation.

Also delete most of protobuf callback.h stubs, which are no longer used.

@copybara-service copybara-service Bot force-pushed the test_940436469 branch 4 times, most recently from e354534 to b22d44c Compare July 2, 2026 18:24
This enables the migration of service implementations away from Closure* in an incremental manner by having the std::function<void()> service implementation call the Closure* one, while the Closure* stub implementation calls the std::function<void()> stub implementation.

Also delete most of protobuf callback.h stubs, which are no longer used.

PiperOrigin-RevId: 940436469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant