Azure / Azure/azure-functions-dotnet-worker

Improved collection support for extensions

Open
#1,334 1 comment 0 reactions 0 assignees View on GitHub
enhancement extensions team-issue
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

We can enhance extension bindings to have better collection support. i.e. a framework that would allow for many more types to be supported outside of IEnumerable and Arrays.

Interfaces: IAsyncEnumerable, IEnumerable, ICollection, IList (maybe the IReadOnly* variants also)
Concrete types: Collection, List, Array, custom derived types like MyItemList : List

Particularly for `IAsyncEnumerable` - this would allow us to asynchronously fetch the contents as this object is enumerated, yielding a performance benefit for customers. Particularly when they don't enumerate a container completely.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the extension binding code that currently handles IEnumerable and arrays, then compare its behavior with IAsyncEnumerable, the other listed interfaces, concrete collection types, and custom derived types. Define the supported collection shapes and verify that asynchronous enumeration can fetch items lazily, especially when a container is only partially enumerated.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.