Skip to content

Comments

[WIP] Fix AsyncSeq migration issues and Fable feedback#232

Merged
dsyme merged 2 commits intorepo-assist/v4-bcl-iasyncenumerable-migration-3b81040f29c8a5a6from
copilot/sub-pr-231
Feb 22, 2026
Merged

[WIP] Fix AsyncSeq migration issues and Fable feedback#232
dsyme merged 2 commits intorepo-assist/v4-bcl-iasyncenumerable-migration-3b81040f29c8a5a6from
copilot/sub-pr-231

Conversation

Copy link
Contributor

Copilot AI commented Feb 22, 2026

  • Investigate Fable CI failures and identify root cause
  • Add Microsoft.Bcl.AsyncInterfaces to Fable test project to fix ValueTask<T> unavailable error
  • Mark ofAsyncEnum and toAsyncEnum as [<Obsolete>] in AsyncSeq.fs and AsyncSeq.fsi
  • Validate changes build and tests pass

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…MPILER

- In AsyncSeq.fs: wrap AsyncSeq<'T> type alias, AsyncSeqImpl<'T>, and
  AsyncSeqEnumeratorExtensions with #if FABLE_COMPILER / #else / #endif.
  For Fable: AsyncSeq<'T> is a library-specific interface with
  GetEnumerator() returning IAsyncSeqEnumerator<'T>, avoiding ValueTask.
  For non-Fable: keeps existing BCL IAsyncEnumerable<'T> alias and
  ValueTask-based adapter.
- In AsyncSeq.fs: guard UnfoldAsyncEnumerator's IAsyncEnumerable<'T>
  implementation of the library AsyncSeq<'T> interface instead.
- In AsyncSeq.fsi: add #if FABLE_COMPILER guard to expose
  IAsyncSeqEnumerator<'T> and define AsyncSeq<'T> as interface for
  Fable builds; keep BCL type alias for non-Fable.

Verified: dotnet build succeeds, 190/190 tests pass, dotnet fable
compiles without errors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants