I have a function that needs to perform some batch API calls. Some of these API calls may succeed and some may fail. Regardless, the caller function (that calls this function) needs to gather the results (which succeeded and which did not). What's the best / Pythonic way of doing this? Using exception? exception group? or just plain tuple returns?
Additionally, if I want to make the API calls async, what's the best way to return the (success/fail) results as the API calls are finished? Using yield?