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

Allow functions to be passed to dispatch.New #7

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

chriso
Copy link
Contributor

@chriso chriso commented Jun 24, 2024

A little usability improvement. Function instances can now be passed directly to dispatch.New, (e.g. dispatch.New(fn1, fn2) as sugar for endpoint, _ := dispatch.New(); endpoint.Register(fn1); endpoint.Register(fn2))

@chriso chriso self-assigned this Jun 24, 2024
@chriso chriso merged commit 71183d8 into main Jun 24, 2024
3 checks passed
@chriso chriso deleted the registration-improvement branch June 24, 2024 22:34
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

Successfully merging this pull request may close these issues.

2 participants