▲ | CamouflagedKiwi 2 days ago | ||||||||||||||||
You have to explicitly propagate the group's context if you want it to cancel. You can just not do that if you don't want - there certainly are cases for that. | |||||||||||||||||
▲ | Cyph0n a day ago | parent [-] | ||||||||||||||||
But if you’re looking at the package API, there is no alternative constructor for Group, which makes it seem as if the most common default is to construct a Group using WithContext. Also, 2/3 of the examples use WithContext. My recommendation would be to have a NewGroup function or equivalent that returns an empty group to surface it as an alternative to WithContext. | |||||||||||||||||
|