Check if a link is currently draining. A link is defined to be draining when drain mode is set to ``True``, and the sender still has excess credit. :return: ``True`` if the link is currently draining, ``False`` otherwise.
(self)
| 1241 | pn_link_drain(self._impl, n) |
| 1242 | |
| 1243 | def draining(self) -> bool: |
| 1244 | """ |
| 1245 | Check if a link is currently draining. A link is defined |
| 1246 | to be draining when drain mode is set to ``True``, and the |
| 1247 | sender still has excess credit. |
| 1248 | |
| 1249 | :return: ``True`` if the link is currently draining, ``False`` otherwise. |
| 1250 | """ |
| 1251 | return pn_link_draining(self._impl) |
| 1252 | |
| 1253 | |
| 1254 | class Terminus(object): |
no test coverage detected