✅ Creating new cancellation token from multiple other tokens
I've got function that is being passed in a cancellation token, and I want to cancel an inner function call if either this cancellation token is triggered, or another internal one is triggered (due to a timeout).
My method looks something like this:
If there's no way of doing this, then I am thinking that I could do it something like this:
But it would be nice to know if there's a way of doing this with a combination cancellation token
1 Reply
Straight after posting this, I did some better googling and found a solution.
For reference, this would be done with: