next#

MapdlPool.next(return_index=False)#

Return a context manager that returns available instances.

This method manages the instance state (locked and busy) when the code enters and exits the code block.

Parameters:
return_indexbool, optional

Whether to return the index along with the instance. The default is False.

Returns:
ctx

Context manager to manage MapdlPool instances.