feat(slot): add 'verify_sender' argument to SafeSlot for sender verification
Description
This MR adds an additional kwarg to SafeSlot
to restrict the underlying method to calls to signal events from alive and not yet destroyed QObjects. It is opt-in (i.e. default is False) but should be used for slots where the subscription changes frequently, e.g. on every scan.
Related Issues
closes #546
Type of Change
- add 'verify_sender' kwarg to
SafeSlot
Additional Comments
This MR doesn't apply the new kwarg to any slot yet but there are tests ensuring its functionality.
Definition of Done
-
Documentation is up-to-date.
Edited by wakonig_k