Skip to content

Adding new extensions for IAsyncEnumerable - #44

Merged
Tyrrrz merged 3 commits into
primefrom
copilot/add-extensions-of-typeasync-skipasync
Apr 17, 2026
Merged

Tyrrrz merged 3 commits into
primefrom
copilot/add-extensions-of-typeasync-skipasync

Conversation

Copilot AI commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Pull request created by AI Agent

Agent-Logs-Url: https://github.com/Tyrrrz/PowerKit/sessions/ae51f40a-5fcb-4dc8-8051-15a162ebf133

Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
@Tyrrrz
Tyrrrz marked this pull request as ready for review April 17, 2026 11:15
Copilot AI review requested due to automatic review settings April 17, 2026 11:15
@codecov

codecov Bot commented Apr 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.57143% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.36%. Comparing base (b9b93a9) to head (e2218f9).
⚠️ Report is 1 commits behind head on prime.

Files with missing lines Patch % Lines
PowerKit/Extensions/AsyncEnumerableExtensions.cs 63.63% 0 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            prime      #44      +/-   ##
==========================================
- Coverage   94.48%   94.36%   -0.12%     
==========================================
  Files          82       82              
  Lines        1705     1740      +35     
  Branches      135      141       +6     
==========================================
+ Hits         1611     1642      +31     
  Misses         72       72              
- Partials       22       26       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional IAsyncEnumerable extension methods to PowerKit to round out the existing async-sequence helpers.

Changes:

  • Add SkipAsync(int, CancellationToken) to skip a number of elements from an async sequence.
  • Add OfTypeAsync<T>(CancellationToken) to filter an async sequence to elements of a given type.
  • Add unit tests covering SkipAsync and OfTypeAsync.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
PowerKit/Extensions/AsyncEnumerableExtensions.cs Introduces SkipAsync and OfTypeAsync async-iterator extensions for IAsyncEnumerable.
PowerKit.Tests/AsyncEnumerableExtensionsTests.cs Adds tests validating behavior of the new async enumerable extensions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI requested a review from Tyrrrz April 17, 2026 11:32
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.

3 participants