On Thu Aug 11 19:51:10 2022 +0000, Piotr Caban wrote:
I have tested _StructuredTaskCollection behavior on Context destroy, here are some thoughts:
- the _StructuredTaskCollection is not canceled
- destructor is not waiting for chores to finish
- there's no crash if Context is destroyed while tasks are
running/scheduled to run
- when context is reused old tasks are gone
I think, that in order to implement it correctly, tasks queue needs to be moved to scheduler. On _Context destroy, all tasks created by the context should be removed from the list.
Alright, the latest push should cover all those points.