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

Support multi callbacks #6

Closed
kMutagene opened this issue Oct 14, 2020 · 1 comment
Closed

Support multi callbacks #6

kMutagene opened this issue Oct 14, 2020 · 1 comment

Comments

@kMutagene
Copy link
Contributor

Callbacks should be a DU like this:

type Callback
| SingleCallback ...
| MultiCallback ...

this will make serialization harder but making multiple outputs possible is important.

  • the 'Output' property of the callback (which is basically its id) needs to be constructed from the multi output objects
  • this id should then automatically be used to register the callback, abstracting the argument away from the registerCallback function.
@kMutagene
Copy link
Contributor Author

Implemented via 66ba10d (dont know why the linking of this issue didn't work). You can now create multiCallbacks via Callback.multiOut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant