zlacker

[parent] [thread] 2 comments
1. neonsu+(OP)[view] [source] 2024-10-14 16:10:55
I found myself liking the F# way of consuming/producing IAsyncEnumerable's with taskseq. It's very terse and looks nice: https://github.com/fsprojects/FSharp.Control.TaskSeq?tab=rea...
replies(1): >>moomin+Z4
2. moomin+Z4[view] [source] 2024-10-14 16:40:32
>>neonsu+(OP)
Apparently Microsoft hold a patent on “yield!”, which makes it all the more frustrating that they haven’t included it in C#.
replies(1): >>neonsu+Hb
◧◩
3. neonsu+Hb[view] [source] [discussion] 2024-10-14 17:18:25
>>moomin+Z4
In F#, yield! is a computation expression, C#'s yield within methods that return IAsyncEnumerable<T> works more or less the same way.
[go to top]