View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/client/task_managers/base.py
ConnectionManager
method stop
Stop the connection manager and close the connection.This method ensures graceful shutdown by waiting for the connection task
to complete and cleanup to finish. If operations exceed the timeout,
forced cleanup is performed to prevent resource leaks.Note:
This method does not raise exceptions and guarantees graceful shutdown
even if cleanup times out.ParametersSignatureMaximum time to wait for cleanup in seconds (default: 30.0).