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

Add a CallbackPair handler implementing Drop and IntoCallbackReceiverPair #653

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

JEnoch
Copy link
Member

@JEnoch JEnoch commented Jan 19, 2024

This struct holds 2 callbacks functions:

  • callback: the typical callback function. context will be passed as its last argument.
  • drop: a callback called when this handler is dropped.

It can be passed to any subscriber or getter function accepting a callback.
E.g.:

@JEnoch JEnoch requested a review from p-avital January 19, 2024 14:48
@p-avital p-avital requested a review from Mallets January 19, 2024 15:02
@p-avital
Copy link
Contributor

@Mallets requesting your review in case you'd like to change a field name or two from the proposed ones :)

@Mallets Mallets merged commit 05c7a3e into main Jan 23, 2024
15 checks passed
@Mallets Mallets deleted the callback_pair branch January 23, 2024 08:30
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.

3 participants