Return connection from which to receive identified resource.
(ident)
| 80 | |
| 81 | @staticmethod |
| 82 | def get_connection(ident): |
| 83 | '''Return connection from which to receive identified resource.''' |
| 84 | from .connection import Client |
| 85 | address, key = ident |
| 86 | c = Client(address, authkey=process.current_process().authkey) |
| 87 | c.send((key, os.getpid())) |
| 88 | return c |
| 89 | |
| 90 | def stop(self, timeout=None): |
| 91 | '''Stop the background thread and clear registered resources.''' |