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

RPC: add a context for cancellation #24

Merged
merged 2 commits into from
Mar 24, 2020
Merged

RPC: add a context for cancellation #24

merged 2 commits into from
Mar 24, 2020

Conversation

Gilthoniel
Copy link
Contributor

This adds a context to the Call function such that the caller can cancel the request if necessary.

@Gilthoniel Gilthoniel added enhancement New feature or request R4M 🚀 The PR is ready to be reviewed and merged labels Mar 23, 2020
@Gilthoniel Gilthoniel requested a review from nkcr March 23, 2020 07:23
@Gilthoniel Gilthoniel self-assigned this Mar 23, 2020
mino/mod.go Outdated
Len() int
}

// ChanMessages is an alias for a channel of Protobuf messages.
type ChanMessages = <-chan proto.Message
Copy link
Contributor

Choose a reason for hiding this comment

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

I would definitely not make aliases in this case.

@nkcr nkcr merged commit 8e95edd into master Mar 24, 2020
@nkcr nkcr deleted the rpc_context branch March 24, 2020 10:47
bbjubjub2494 pushed a commit to bbjubjub2494/dela that referenced this pull request Aug 3, 2024
RPC: add a context for cancellation
ineiti added a commit that referenced this pull request Oct 10, 2024
Fixing race condition and adding fuzzy test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request R4M 🚀 The PR is ready to be reviewed and merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants