• Victor Stinner's avatar
    bpo-31249: Fix ref cycle in ThreadPoolExecutor (#3178) · bc613153
    Victor Stinner authored
    * bpo-31249: Fix ref cycle in ThreadPoolExecutor
    
    concurrent.futures: WorkItem.run() used by ThreadPoolExecutor now
    breaks a reference cycle between an exception object and the WorkItem
    object. ThreadPoolExecutor.shutdown() now also clears its threads
    set.
    
    * shutdown() now only clears threads if wait is true.
    
    * Revert changes on shutdown()
    bc613153
2017-08-22-12-44-48.bpo-31249.STPbb9.rst 144 Bytes