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

error returned by context watcher #1901

Closed

Conversation

zcolleen
Copy link

@zcolleen zcolleen commented Feb 5, 2024

No description provided.

jackc and others added 4 commits February 3, 2024 21:46
This feature made the ctxwatch package public.
This allows a context to cancel a query by sending a cancel request to
the server before falling back to setting a deadline.
@jackc jackc force-pushed the custom-context-canceled branch from 5e96e9a to 93a5797 Compare May 8, 2024 12:45
@jackc
Copy link
Owner

jackc commented May 8, 2024

As mentioned a few months ago in the other thread, I think it is fundamentally incorrect for a query method to return an error when we know the query has succeeded. Sorry, but even if it is not the default, I don't want to encourage bad behavior.

@jackc jackc closed this May 8, 2024
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.

2 participants