Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nikiforovall/async-enumerable-pipelines

This repository demonstrates how to use IAsyncEnumerable and System.Linq.Async to build pipelines in C#.
https://github.com/nikiforovall/async-enumerable-pipelines

ai async-await dotnet iasyncenumerable iobservable pipelines reactive semantic-kernel

Last synced: 3 months ago
JSON representation

This repository demonstrates how to use IAsyncEnumerable and System.Linq.Async to build pipelines in C#.

Awesome Lists containing this project

README

        

# Building pipelines with IAsyncEnumerable

[![Build](https://github.com/NikiforovAll/async-enumerable-pipelines/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/NikiforovAll/async-enumerable-pipelines/actions/workflows/build.yml)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nikiforovall/async-enumerable-pipelines/blob/main/LICENSE.md)

This repository demonstrates how to use `IAsyncEnumerable` and `System.Linq.Async` to build pipelines in C#.

> [!IMPORTANT]
> This repository doesn't cover all the possible concerns such as error handling, cancellation, backpressure, performance, etc. It's just a simple demonstration of how to build pipelines with `IAsyncEnumerable` and `System.Linq.Async`.

```bash
dotnet example --list
```

```text
╭─────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────╮
│ Example │ Description │
├─────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────┤
│ CalculateWordCountPipeline │ Demonstrates how to build async-enumerable pipelines based on standard LINQ operators │
│ CalculateWordCountFileWatcherPipeline │ Demonstrates how to combine async-enumerable pipelines with IObservable. E.g: file watcher │
│ CalculateWordCountBatchPipeline │ Demonstrates how to use batching in async-enumerable pipelines │
│ TextSummarizationAndAggregationPipeline │ Demonstrates how to build custom async-enumerable operators │
╰─────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────╯
```
## Demo: CalculateWordCountPipeline

## Demo: CalculateWordCountFileWatcherPipeline

## Demo: CalculateWordCountBatchPipeline

## Demo: TextSummarizationAndAggregationPipeline

## References
-
-
-