skrawcz commented on PR #1027:
URL: https://github.com/apache/burr/pull/1027#issuecomment-6638639384

   Thanks for the thorough matrix, both findings were real.
   
   **1.** Agreed: under an anyio cancel scope, an `await` in the action's own 
cleanup is cancelled (not Burr-specific, as you found). The docs and example no 
longer say the action "is still cleaned up". They now say cleanup starts and an 
`await` in it is cancelled unless wrapped in `anyio.CancelScope(shield=True)`, 
and the cancel-scope test pins both the unshielded and the shielded case.
   
   **2.** Fixed in 049ee0ab. Sync and async now follow one rule: the first 
error wins (the cleanup error, else the `post_run_step` hook error), a hook 
error superseded by a cleanup error is logged, and every `close()`/`aclose()` 
raises the same error. Both failure combinations are covered, for sync and 
async, via explicit close and via `break` then close.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to