dabeaz / curio

Good Curio!
Other
4.02k stars 241 forks source link

Clarify documentation of TaskGroups #244

Closed Nikratio closed 6 years ago

Nikratio commented 6 years ago

From the documentation, it is not clear to me:

It would be great if this could be clarified in the documentation.

dabeaz commented 6 years ago

Will work on docs. FYI, there is no relation between the top level spawn() function and the TaskGroup.spawn() method. Nor is there any kind of hierarchy or relationship between different Task Groups. For a Task to be part of a group, it must be explicitly spawned from it or added to the group.

dabeaz commented 6 years ago

Added notes to better indicate the lack of relationships between task groups and the top-level spawn() function.