Returns a new ShareableList instance populated with the values from the input sequence, to be tracked by the manager.
(self, sequence)
| 1426 | return sms |
| 1427 | |
| 1428 | def ShareableList(self, sequence): |
| 1429 | """Returns a new ShareableList instance populated with the values |
| 1430 | from the input sequence, to be tracked by the manager.""" |
| 1431 | with self._Client(self._address, authkey=self._authkey) as conn: |
| 1432 | sl = shared_memory.ShareableList(sequence) |
| 1433 | try: |
| 1434 | dispatch(conn, None, 'track_segment', (sl.shm.name,)) |
| 1435 | except BaseException as e: |
| 1436 | sl.shm.unlink() |
| 1437 | raise e |
| 1438 | return sl |