Hello! How to distinguish if cancellation come from parent or child?
l
louiscad
09/18/2021, 9:54 AM
Hello! What's your use case?
p
PHondogo
09/18/2021, 1:55 PM
I'm sending message to channel and if channel. In case of catching exeption I want to understand if channel was canceled or current job.
l
louiscad
09/18/2021, 2:38 PM
Your first sentence isn't clear to me.
Why do you want to "understand" if the channel was cancelled, or if the cancellation came from the job of a coroutine?
p
PHondogo
09/18/2021, 2:43 PM
In case the channel was cancelled i need to create new and make some retry logic. In case of job canceled - just exit.