IAsyncEnumerable
- Any support for this? I don't see any mention of IAsyncEnumerable in this repository at all
#470
-
Hey all, I wanted to check and see if IAs is supported. I see in
That would equate to something like QuestionHow should I return a Most of my methods return |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, there's no support for I don't see the need for Since |
Beta Was this translation helpful? Give feedback.
No, there's no support for
IAsyncEnumerable
or similar. As far as I understand, that's for IO/out-of-process dependencies, which this library doesn't work with.I don't see the need for
ResultAsync
either because all extension methods (sync or async) work with theResult
class itself.Since
IAsyncEnumerable
should be the upper-most monad, you'd have to do something lineIAsyncEnumerable<Maybe<T>>
. This doesn't really work well, so I'd recommend to first process theIAsyncEnumerable
and then convert the whatever result toMaybe
orResult
.