Get and clear pending edges. :raises ValueError: if errorOnEmpty is True and no edges are present.
(self, errorOnEmpty: bool = True)
| 97 | self.tags = {} |
| 98 | |
| 99 | def popPendingEdges(self, errorOnEmpty: bool = True) -> List[Edge]: |
| 100 | """ |
| 101 | Get and clear pending edges. |
| 102 | |
| 103 | :raises ValueError: if errorOnEmpty is True and no edges are present. |
| 104 | """ |
| 105 | if errorOnEmpty and not self.pendingEdges: |
| 106 | raise ValueError("No pending edges present") |
| 107 | out = self.pendingEdges |
| 108 | self.pendingEdges = [] |
| 109 | return out |
| 110 | |
| 111 | def popPendingWires(self, errorOnEmpty: bool = True) -> List[Wire]: |
| 112 | """ |
no outgoing calls