Open akshay-zz opened 2 years ago
That's a nice suggestion.
It's always tricky to 'kill' things that are running, but maybe we can arrange something (maybe cancelling a cancellationtoken for the caller to manage).
There's a fancy name for "cancelling something if it's not completed in a certain amount of time" by the way: "timeout" ;)
Is there's any way to cancel a job after certain amount of time it it's still executing. Also any oncancelled callback function/Event just to log the things.