Skip to content

IAsyncEnumerable - Any support for this? I don't see any mention of IAsyncEnumerable in this repository at all #470

Answered by vkhorikov
jeffward01 asked this question in Q&A
Discussion options

You must be logged in to vote

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 the Result class itself.

Since IAsyncEnumerable should be the upper-most monad, you'd have to do something line IAsyncEnumerable<Maybe<T>>. This doesn't really work well, so I'd recommend to first process the IAsyncEnumerable and then convert the whatever result to Maybe or Result.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeffward01
Comment options

Answer selected by jeffward01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants