C#C
C#2y ago
eid

✅ CancellationTokenSource .. apply what design pattern?

i notice it's object wrap other object(cancellation-token),to prevent it to set its flag in the background threads,and it is the responsible for manage it(cancel it by set it true,callback method,timeout method,etc),
what the name of that design in c#?
Was this page helpful?