This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients Henrique Andrade, davin, pablogsal, pitrou
Date 2018-03-18.17:12:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521393135.74.0.467229070634.issue33081@psf.upfronthosting.co.za>
In-reply-to
Content
>"I want to terminate the queue and make sure that no resources are leaked.

Then you don't need to do anything special, those will be cleared on object destruction. This is not an unusual pattern even in other languages. For example, RAII in C++ is one of the most used patterns for acquiring resources and that works cleaning those resources on object destruction.
History
Date User Action Args
2018-03-18 17:12:15pablogsalsetrecipients: + pablogsal, pitrou, davin, Henrique Andrade
2018-03-18 17:12:15pablogsalsetmessageid: <1521393135.74.0.467229070634.issue33081@psf.upfronthosting.co.za>
2018-03-18 17:12:15pablogsallinkissue33081 messages
2018-03-18 17:12:15pablogsalcreate