Effect CommunityEC
Effect Community3y ago
9 replies
JamieMason

Convert Effect to Option

I've seen a very similar question [1] but that thread moved off a little onto a discussion about Promises. I have a completely synchronous pipeline and want to return an Option at the end of it, upstream of this in the creation of this Option is an Effect which can fail, I want to discard the Error value and instead return a None in that case.

Is this possible? Thanks a lot.

[1] How to convert an Effect to an Option ?
Was this page helpful?