meadow icon indicating copy to clipboard operation
meadow copied to clipboard

Add callback option for subscribe methods

Open quietlychris opened this issue 1 year ago • 0 comments

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)

quietlychris avatar Feb 28 '23 03:02 quietlychris