Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@2ne1ugly
Copy link
Contributor

I came across of a use case where I need to report the result of effect to slack.
tapBoth was the first option but it simply required me to write a function or duplicate codes.
Through tapEither, we can execute an effect with the execution result information in one lambda.

Similar function exists in typelevel/cats/MonadError

@CLAassistant
Copy link

CLAassistant commented May 17, 2021

CLA assistant check
All committers have signed the CLA.

@jdegoes
Copy link
Member

jdegoes commented May 17, 2021

@2ne1ugly Looks great! If we merge here, can you cherry-pick to the series/2.x branch? 🙏

@mingyuchi
Copy link
Contributor

@2ne1ugly Looks great! If we merge here, can you cherry-pick to the series/2.x branch? 🙏

Sure, I will do that tomorrow (about 14 hours later from now)

@jdegoes
Copy link
Member

jdegoes commented May 17, 2021

@mingyang91 Thank you!

@jdegoes jdegoes merged commit 931b472 into zio:master May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants