How to Abort on-going execution of the Python function? #549
Unanswered
Nick346-surf
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Async functions support cancellation tokens, so this would be the easiest way to achieve what you're asking. Beside that, the same patterns as cancelling a function call in .NET apply, that is you would wrap it in a Task and use a cancellation token. for async that's all been generated for you and works nicely with Python's event loop API |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there a way to cancel/abort a python function once it is called from CSnakes?
What is the recommended way of achieving such scenario? Any example?
Say for some reason the function is taking too much time and i want to cancel it to allow other functions to get executed.
Thanks in advance for any feedbacks
Beta Was this translation helpful? Give feedback.
All reactions