fsprojects / FSharp.Control.TaskSeq

A computation expression and module for seamless working with IAsyncEnumerable<'T> as if it is just another sequence
MIT License
93 stars 8 forks source link

Deprecate `taskSeq<_>` in favor of `TaskSeq<_>` #187

Closed abelbraaksma closed 1 year ago

abelbraaksma commented 1 year ago

Similar to have the Async<_> and AsyncSeq<_> type aliases work, we should use the Principle of Least Surprise and do the same.

The gist of this change is just that this:

type taskSeq<'T> = IAsyncEnumerable<'T>

becomes

type TaskSeq<'T> = IAsyncEnumerable<'T>

This follows from suggestions made in other issues, but I can't find it readily.

We will keep taskSeq<_> around, but it will raise FS0044, a deprecation warning. People can use it just fine by ignoring the warning

From version 0.4.0 onward, 'TaskSeq<_>' is deprecated in favor of 'TaskSeq<_>'. It will be removed in an upcoming release."