Returns a new ShareableList instance populated with the values from the input sequence, to be tracked by the manager.
(self, sequence)
| 1385 | return sms |
| 1386 | |
| 1387 | def ShareableList(self, sequence): |
| 1388 | """Returns a new ShareableList instance populated with the values |
| 1389 | from the input sequence, to be tracked by the manager.""" |
| 1390 | with self._Client(self._address, authkey=self._authkey) as conn: |
| 1391 | sl = shared_memory.ShareableList(sequence) |
| 1392 | try: |
| 1393 | dispatch(conn, None, 'track_segment', (sl.shm.name,)) |
| 1394 | except BaseException as e: |
| 1395 | sl.shm.unlink() |
| 1396 | raise e |
| 1397 | return sl |