Effect CommunityEC
Effect Community2y ago
9 replies
Salami

Return values if one of two concurrent promises fails

I am awaiting two promises concurrently. Right now I am using Effect.all().
What Effect feature would I have to use to return a value from Promise1 if Promise2 fails? If both are successful, I want to return both values as in Effect.all()
Was this page helpful?