Replies: 1 comment
-
Oh a nice syntaxique sugar! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In some cases you could be working with an API that returns callbacks instead of streams and in that case it may make sense to provide some extensions.
Consider the following API:
Before and currently you need to add the callback function and define the signal:
This definitely works, but could lead to type mismatch, the extension would extract the type from the callback.
After we could do it in one operation:
Beta Was this translation helpful? Give feedback.
All reactions