Skip to content

Add async mapping utilities: mapa and maybe_aiter#802

Open
ncoop57 wants to merge 3 commits intomainfrom
mapa
Open

Add async mapping utilities: mapa and maybe_aiter#802
ncoop57 wants to merge 3 commits intomainfrom
mapa

Conversation

@ncoop57
Copy link
Copy Markdown
Contributor

@ncoop57 ncoop57 commented Apr 10, 2026

Adds two new async utility functions:

  • maybe_aiter: Converts items to async generator if needed
  • mapa: Async version of map that handles both sync and async iterables/functions

These utilities simplify working with mixed sync/async code by automatically handling both cases.

@ncoop57 ncoop57 added the enhancement New feature or request label Apr 10, 2026
@ncoop57 ncoop57 requested a review from jph00 April 10, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant