Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix short lived callback lifetimes #88

Closed
wants to merge 1 commit into from

Conversation

arg0d
Copy link
Contributor

@arg0d arg0d commented Sep 2, 2024

Callback refcounts were not taken into account for short-lived callbacks. After changes, it's ok to use the same callback multiple times in short-lived context. Added a test for this.

Fixes #79

Signed-off-by: Kristupas Antanavičius <[email protected]>
@arg0d arg0d force-pushed the kristupas/fix-callback-lifetimes branch from f48d012 to 51aefbc Compare September 2, 2024 14:05
@arg0d arg0d changed the title Fix short lived callback lifetimes #79 Fix short lived callback lifetimes Sep 2, 2024
@arg0d arg0d marked this pull request as ready for review September 2, 2024 14:06
@arg0d arg0d marked this pull request as draft September 2, 2024 15:02
@arg0d arg0d closed this Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropping single callback reference invalidates the entire callback
1 participant