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

Add top-level dispatch.batch helper function #165

Merged
merged 1 commit into from
May 13, 2024
Merged

Add top-level dispatch.batch helper function #165

merged 1 commit into from
May 13, 2024

Conversation

chriso
Copy link
Contributor

@chriso chriso commented May 13, 2024

#154 added a way for users to run Dispatch without an integration like FastAPI. In this mode, the user doesn't have to instantiate a Dispatch (and Registry) instance, and can instead use the top-level functions that have the same behavior.

We were missing a top-level batch function that other integrations have access to on their dispatch (Registry) instances (see Registry.batch). This PR adds the missing function to bring parity with the other integrations.

@chriso chriso self-assigned this May 13, 2024
@chriso chriso merged commit 833793e into main May 13, 2024
7 checks passed
@chriso chriso deleted the dispatch-batch branch May 13, 2024 04:32
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