Skip to content

Commit

Permalink
mention session sharing in ResourceManager.close docstring (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkriegner committed Apr 26, 2023
1 parent 6d2791e commit 626c0da
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pyvisa/highlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3063,7 +3063,15 @@ def last_status(self) -> StatusCode:
return self.visalib.get_last_status_in_session(self.session)

def close(self) -> None:
"""Close the resource manager session."""
"""Close the resource manager session.
Notes
-----
Since the resource manager session is shared between instances
this will also terminate connections obtained from other
ResourceManager instances.
"""
atexit.unregister(self._atexit_handler)
try:
logger.debug("Closing ResourceManager (session: %s)", self.session)
Expand Down

0 comments on commit 626c0da

Please sign in to comment.