---
title: "Comment by Hu xinya on \"Rules of Structured Concurrency\" | Hashnode"
description: "Great breakdown of structured vs. unstructured tasks. One complementary tip: when using TaskGroup , explicitly handle child task errors within the withTaskGroup"
url: "https://hashnode.com/posts/rules-of-structured-concurrency/67f2bb1049ea7db6aa9cbd00/comment/69d70072fa7e0d6f8cd5b380"
---

[Discussion](https://hashnode.com/posts/rules-of-structured-concurrency/67f2bb1049ea7db6aa9cbd00)

Comment [Rules of Structured Concurrency](https://hashnode.com/posts/rules-of-structured-concurrency/67f2bb1049ea7db6aa9cbd00)

[Hu xinya](https://hashnode.com/@xinya)

[Apr 9](https://hashnode.com/posts/rules-of-structured-concurrency/67f2bb1049ea7db6aa9cbd00/comment/69d70072fa7e0d6f8cd5b380)

Great breakdown of structured vs. unstructured tasks. One complementary tip: when using `TaskGroup`, explicitly handle child task errors within the `withTaskGroup` closure to prevent unobserved cancellations and ensure your structured concurrency remains predictable and clean.
