(self, *args)
Automatically terminate the pool when falling out of scope.
Automatically terminate the pool when falling out of scope.
Automatically terminate the pool when falling out of scope .
async def __aexit__(self, *args) -> None:
        """Automatically terminate the pool when falling out of scope."""
        self.terminate()
        await self.join()
async def __aexit__ ( self , * args ) -> None : self . terminate ( ) await self . join ( )