De-register a previously registered callback. It will no-longer receive notifications on connection events. Calling this is not required when the listener goes away, since the callbacks are kept as weak methods.
(self, callback)
| 326 | self._connect_callbacks.append(wm) |
| 327 | |
| 328 | def deregister_connect_callback(self, callback): |
| 329 | """ |
| 330 | De-register a previously registered callback. It will no-longer receive |
| 331 | notifications on connection events. Calling this is not required when the |
| 332 | listener goes away, since the callbacks are kept as weak methods. |
| 333 | """ |
| 334 | try: |
| 335 | self._connect_callbacks.remove(weakref.WeakMethod(callback)) |
| 336 | except ValueError: |
| 337 | pass |
| 338 | |
| 339 | def set_parser(self, parser_class: Type[BaseParser]) -> None: |
| 340 | """ |