Skip to content

Question about OptionAsync #1207

Answered by evermanwa
JonTheTurnip asked this question in Q&A
Discussion options

You must be logged in to vote

Try to use "return func().ToAsync();" instead. When a task is wrapping a monad, the ToAsync will convert them to the async equivalent. So Task<Either<A,B>> will be converted to EitherAsync<A,B> if you call ToAsync on it.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by JonTheTurnip
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