Structured concurrency with cancel scopes ensures all sub-tasks are checked for exceptions before allowing the parent task to proceed, preventing silent exception swallowing.
The suspension caused by yields in asynchronous generators hinders proper exception handling in structured concurrency due to issues with call frames and scopes.
Collection
[
|
...
]