(self)
| 567 | return [c] if c else [] |
| 568 | |
| 569 | def get_state(self): |
| 570 | connection = self._connection |
| 571 | open_count = 1 if connection and not (connection.is_closed or connection.is_defunct) else 0 |
| 572 | in_flights = [connection.in_flight] if connection else [] |
| 573 | orphan_requests = [connection.orphaned_request_ids] if connection else [] |
| 574 | return {'shutdown': self.is_shutdown, 'open_count': open_count, \ |
| 575 | 'in_flights': in_flights, 'orphan_requests': orphan_requests} |
| 576 | |
| 577 | @property |
| 578 | def open_count(self): |
no outgoing calls