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 callback option for subscribe methods #44

Open
quietlychris opened this issue Feb 28, 2023 · 0 comments
Open

Add callback option for subscribe methods #44

quietlychris opened this issue Feb 28, 2023 · 0 comments

Comments

@quietlychris
Copy link
Owner

It's a common pattern in pub/sub libraries to support running an operation on subscribed values once they're received. An option should be available for the user to create a function that can be passed to a Subscriber Node to do this. It might take some consideration on how to manage this with the types generics in case the callback's return isn't the same as the initial requestee value (i.e. turning a usize into an f32 or something)

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

No branches or pull requests

1 participant