Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Replaced StopAsyncIteration with a return to prevent errors wh…
…en no tasks are provided. (#991) # Description **What**: - Replaced `StopAsyncIteration` with a return statement in the `stream_async_iterators_tasks` function. This ensures nothing is returned when empty tasks are provided to the function. **Why**: - The use of `StopAsyncIteration` was causing improper error handling in scenarios where no async tasks were provided. By replacing with a return statement, the error is prevented and nothing is returned just as nothing was provided. **How**: - Replaced StopAsyncIteration with a return statement return nothing when an empty list of tasks is passed to the `stream_async_iterators_tasks` function. ## Type of change - [x] Bug fix (non-breaking change which fixes an issue)
- Loading branch information