• Kirill Smelkov's avatar
    context: Reorganize the code to make internal logic more clear · d0688e21
    Kirill Smelkov authored
    - _propagateCancel is used only in _BaseCtx constructor -> inline it
      there. Being run in the constructor makes it clear that this code
      works on new _BaseCtx object with empty set of children.
    
    - since _cancelFrom interacts with the code moved from _propagateCancel,
      also move it to be close to cancel propagation setup.
    
    No functional changes, just plain code movement.
    
    /trusted-by @jerome
    /reviewed-on !16
    d0688e21
context.cpp 11.1 KB