https://github.com/dispatchrun/dispatch-py/pull/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.
https://github.com/dispatchrun/dispatch-py/pull/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
(andRegistry
) 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 theirdispatch
(Registry
) instances (seeRegistry.batch
). This PR adds the missing function to bring parity with the other integrations.