Re:Async Cancellation
by Joker_vD on Friday November 12, 2021 @07:20AM
(#29198595)
That's also the Go's style, isn't it? With concisely named "context.Context" (not to be confused with any other relevant context) being passed around everywhere?
[ Parent
| on HN ]
Re:Async Cancellation
by asdfasgasdgasdg on Friday November 12, 2021 @07:37AM
(#29198707)
Yes, this is the same style as go. Fortunately you don't have to check the cancel token everywhere since clients can just proceed as if you had been cancelled (in well designed systems). You just need to check it before and during potentially expensive or long running operations (IO or expensive computation, basically).