Embedding one into another
You can embed an unlimited number of other tokens in one token by passing them as arguments during initialization. Each time it checks whether it has been cancelled, the token first checks its cancellation rules, and if it has not been cancelled itself, then it checks the tokens nested in it. Thus, one cancelled token nested in another non-cancelled token cancels it: