Skip to content

feat: Add weak reference and one-shot connection support #5

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

san-tekart
Copy link
Collaborator

  • Add weak reference support via weak=True in signal connections
  • Add one-shot connections via one_shot=True that auto-disconnect after first emit
  • Improve thread safety with internal connection locking
  • Add extensive documentation for all public APIs
  • Add new tests for weak references and one-shot functionality
  • Update examples and documentation to demonstrate new features

This commit introduces two major features:

  1. Weak reference support allows receivers to be garbage collected
  2. One-shot connections automatically disconnect after first successful emit

The changes also include significant documentation improvements and additional test coverage.

- Add weak reference support via weak=True in signal connections
- Add one-shot connections via one_shot=True that auto-disconnect after
  first emit
- Improve thread safety with internal connection locking
- Add extensive documentation for all public APIs
- Add new tests for weak references and one-shot functionality
- Update examples and documentation to demonstrate new features

This commit introduces two major features:
1. Weak reference support allows receivers to be garbage collected
2. One-shot connections automatically disconnect after first successful emit

The changes also include significant documentation improvements and additional test coverage.
@san-tekart san-tekart self-assigned this Dec 21, 2024
@san-tekart san-tekart merged commit 8d9e703 into main Dec 21, 2024
3 checks passed
@san-tekart san-tekart deleted the weakref branch December 21, 2024 07:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant