Skip to content

How should one handle chains of operations where some should be async and others sync? #1149

Answered by louthy
EivindAntonsen asked this question in Q&A
Discussion options

You must be logged in to vote

I guess if some of these return Aff instead of Eff, everything must be Aff?

That’s correct, but note that Effs are promoted to be Affs automatically when you combine them in a LINQ expression; so you don’t have to change your synchronous function signatures.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@EivindAntonsen
Comment options

@louthy
Comment options

@louthy
Comment options

@EivindAntonsen
Comment options

@EivindAntonsen
Comment options

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