(self)
return container
Acquire a preallocated container and returns its user path.

        An EmptyPoolError is raised if no containers are ready.
Acquire a preallocated container and returns its user path.
Acquire a preallocated container and returns its user path .
def acquire(self):
        '''Acquire a preallocated container and returns its user path.

        An EmptyPoolError is raised if no containers are ready.'''

        if not self.available:
            raise EmptyPoolError()

        container = self.available.pop()
        # signal start on acquisition
        self.started[container.id] = datetime.utcnow()
        return container
def acquire ( self ) : if not self . available : raise EmptyPoolError ( ) container = self . available . pop ( ) # signal start on acquisition self . started [ container . id ] = datetime . utcnow ( ) return container