Replies: 1 comment 1 reply
-
This functionality is currently not exposed by diesel-async. I would accept a PR adding this. It should include documentation and a small test. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!,
I'm new to diesel, it looks awesome.
I would like to use diesel in a project where queries may take a long time to complete, but if the client disconnects - I would like to cancel the query. AFAIK, tokio-postgres won't signal the server to cancel a query if the future is dropped.
tokio-postgres
provides a token that can be used to attempt to terminate an ongoing query via thecancel_token
function.Is it possible to access
cancel_token
somehow before executing a query?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions