(self)
Closes the RunspacePool and cleans all the internal resources. This
        will close all the runspaces in the runspacepool and release all the
        operations waiting for a runspace. If the pool is already closed or
        broken or closing, this will just return
Closes the RunspacePool and cleans all the internal resources. This
        will close all the runspaces in the runspacepool and release all the
        operations waiting for a runspace. If the pool is already closed or
        broken or closing, this will just return
Closes the RunspacePool and cleans all the internal resources . This will close all the runspaces in the runspacepool and release all the operations waiting for a runspace . If the pool is already closed or broken or closing this will just return
def close(self):
        """
        Closes the RunspacePool and cleans all the internal resources. This
        will close all the runspaces in the runspacepool and release all the
        operations waiting for a runspace. If the pool is already closed or
        broken or closing, this will just return
        """
        log.info("Closing Runspace Pool")
        if self.state in [RunspacePoolState.CLOSED, RunspacePoolState.CLOSING,
                          RunspacePoolState.BROKEN]:
            return

        self.shell.close()
        self.state = RunspacePoolState.CLOSED
def close ( self ) : log . info ( "Closing Runspace Pool" ) if self . state in [ RunspacePoolState . CLOSED , RunspacePoolState . CLOSING , RunspacePoolState . BROKEN ] : return self . shell . close ( ) self . state = RunspacePoolState . CLOSED