johste
Need help identifying the generic client side type of procedures
Hi!
I think my question is better explained by what I'm trying to achive than anything else:
I like to create a function called "subscribe" that can receive any subscription procedure and subscribe to it:
e.g (sudo code):
Below is the infered type, but I'm pretty sure there is an generic type to represent such a thing "somewhere":
I've been digging through the source code, but so far I had no luck reproducing it. Have anyone attempted something similar?
3 replies