How does a linked dataflow block cancel the target block
Clash Royale CLAN TAG #URR8PPP How does a linked dataflow block cancel the target block In TPL Dataflow, when a block is linked to another block with propagation, it will forward exceptions and also cancellations. I can imagine that forwarding an exception is simply done by using dataFlowBlock.Fault(exception) , but I'm curious as to how the cancellation is forwarded as there is no such thing as dataFlowBlock.Cancel() . Is it done through the same Fault() method using the by passing TaskCancelledException as an argument? dataFlowBlock.Fault(exception) dataFlowBlock.Cancel() Fault() TaskCancelledException Update: To clarify, consider the following example where only block1 is created with a CancelationToken via options, and block2 isn't. Block1 is linked to block2 with propagation: CancelationToken block1 { CancellationToken = ct } -> block2 { } When ct receives a cancelation request, block1 completion transitions to canceled. My question is what happens to block2 at this...