(self, block=True, timeout=None)
| 156 | raise queue.Full |
| 157 | |
| 158 | def get(self, block=True, timeout=None): |
| 159 | if self.client is None: |
| 160 | self.client = plasma.connect(self.socket_name) |
| 161 | object_id = self.queue.get(block, timeout) |
| 162 | if not self.client.contains(object_id): |
| 163 | exc_type = "ObjectIDGetError" |
| 164 | data = (self.get_error(exc_type),) |
| 165 | else: |
| 166 | data = self.client.get(object_id) |
| 167 | self.client.delete([object_id]) |
| 168 | return data |
| 169 | |
| 170 | def qsize(self): |
| 171 | return self.queue.qsize() |
no test coverage detected