Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return capnp.Client from promised :Capability type #333

Merged
merged 4 commits into from
Nov 14, 2022

Conversation

lthibault
Copy link
Collaborator

This PR updates codegen for :Capability types so that futures return capnp.Client instead of capnp.Future.

Along the way, common code for handling :AnyPointer has been abstracted. See any_pointer.go.

Once merged, users will need to run ./regen.sh.

Copy link
Contributor

@zenhack zenhack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems broadly reasonable, modulo one thing mentioned in-line.

capnpc-go/capnpc-go.go Outdated Show resolved Hide resolved
@zenhack
Copy link
Contributor

zenhack commented Nov 14, 2022

The data race looks like #301 to me; I'm ok merging if you are.

@lthibault lthibault merged commit 394d2cf into main Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants