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

ircevent: add synchronous GetLabeledResponse API #74

Merged
merged 1 commit into from
May 29, 2022

Conversation

slingamn
Copy link
Member

cc @progval.

I was working on the client-side implementation of ergochat/ergo#1593 and realized that what we really want is a synchronous API for labeled-response: block until the response is available.

Right now a timeout guarantee is implicit in the labeled-response logic: a response that doesn't arrive within 2 * (*Connection).Timeout will be cleaned up and the callback invoked with nil, triggering an error response. But maybe this method should take its own timeout argument?

@slingamn slingamn merged commit 19e3d64 into ergochat:master May 29, 2022
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