FSharp.Control.AsyncSeq icon indicating copy to clipboard operation
FSharp.Control.AsyncSeq copied to clipboard

TaskSeq?

Open BrianVallelunga opened this issue 4 years ago • 6 comments

Is there a plan to add an equivalent taskSeq CE to this library? Thanks

BrianVallelunga avatar Oct 14 '21 20:10 BrianVallelunga

We will be making a new version of this library that implements the official task-producing IAsyncEnumerable.

Indeed I'll be working on that now

dsyme avatar Oct 14 '21 20:10 dsyme

Thanks for the news. That's great to hear.

BrianVallelunga avatar Oct 14 '21 21:10 BrianVallelunga

Was just looking for this today. Any updates? I'm able to convert to AsyncSeq for this use-case, but would love to see TaskSeq available for my other use-cases.

bigjonroberts avatar Jul 29 '22 21:07 bigjonroberts

For reference, there's code in F# right now that has the taskSeq, used for perf testing. It was written by @dsyme I believe, but currently misses the dynamic parts: https://github.com/dotnet/fsharp/blob/d5312aae8aad650f0043f055bb14c3aa8117e12e/tests/benchmarks/CompiledCodeBenchmarks/TaskPerf/TaskPerf/taskSeq.fs.

My guess it, this would be a good starting point for implementing this.

abelbraaksma avatar Aug 22 '22 12:08 abelbraaksma

@BrianVallelunga and others monitoring this, it's taken a bit of time, but I picked up the gauntlet and recently finished a decent MVP for this, after ironing out a few bugs in the resumable state machine code (there are PRs that document this in case you're curious).

Just today I moved it to FsProjects with help by @dsyme, you can find it here: https://github.com/fsprojects/FSharp.Control.TaskSeq (edited, was wrong link).

It is available as NuGet pack and under active development by the community.

abelbraaksma avatar Nov 04 '22 15:11 abelbraaksma

Great to hear. Thanks!

BrianVallelunga avatar Nov 04 '22 18:11 BrianVallelunga