[ 
https://issues.apache.org/jira/browse/IGNITE-23797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Tupitsyn updated IGNITE-23797:
------------------------------------
    Description: 
Data streamer requires *IAsyncEnumerable* source. However, data sources are 
often synchronous (like an in-memory collection).

There is no way to convert an *IEnumerable* to an *IAsyncEnumerable* in the 
standard library. The user has to install 
[System.Linq.Async|https://www.nuget.org/packages/system.linq.async/] or 
implement their own extension.

We can provide an extension method and corresponding overloads to simplify the 
streamer API usage.

  was:
Data streamer requires *IAsyncEnumerable* source. However, data sources are 
often synchronous (like an in-memory collection).

There is no way to convert an *IEnumerable* to an *IAsyncEnumerable* in the 
standard library. The user has to install 
[System.Linq.Async|https://www.nuget.org/packages/system.linq.async/] or 
implement their own extension.


> .NET: IDataStreamerTarget lacks overloads with IEnumerable sources
> ------------------------------------------------------------------
>
>                 Key: IGNITE-23797
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23797
>             Project: Ignite
>          Issue Type: Improvement
>          Components: .NET, platforms
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Minor
>              Labels: .NET, ignite-3
>             Fix For: 3.1
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Data streamer requires *IAsyncEnumerable* source. However, data sources are 
> often synchronous (like an in-memory collection).
> There is no way to convert an *IEnumerable* to an *IAsyncEnumerable* in the 
> standard library. The user has to install 
> [System.Linq.Async|https://www.nuget.org/packages/system.linq.async/] or 
> implement their own extension.
> We can provide an extension method and corresponding overloads to simplify 
> the streamer API usage.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to