Skip to content

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

Notifications You must be signed in to change notification settings

NikiforovAll/async-enumerable-pipelines

Repository files navigation

Building pipelines with IAsyncEnumerable

Build License

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.

dotnet example --list
╭─────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────╮
│ 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

demo1.mp4

Demo: CalculateWordCountFileWatcherPipeline

demo2.mp4

Demo: CalculateWordCountBatchPipeline

demo3.mp4

Demo: TextSummarizationAndAggregationPipeline

demo4.mp4

References

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages