Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tapChain #13

Open
dggluz opened this issue Sep 5, 2018 · 1 comment
Open

Add tapChain #13

dggluz opened this issue Sep 5, 2018 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@dggluz
Copy link
Collaborator

dggluz commented Sep 5, 2018

Description

Similar to #12, but for functions that return Tasks where we are not interested in its resolving types but in managing it possibly rejection values or in waiting for that function to complete:

task
    .chain(tapChain(sendEmail))
    .chain(tapChain(sendSlackMessage))
@dggluz dggluz added the enhancement New feature or request label Sep 5, 2018
@hrajchert
Copy link
Contributor

I didn't have the need to do this yet, but just like tap, I'd suggest to provide it directly in to pipe. And probably change name

task.pipe(
  tapAndAwait(sendEmail)
)

@hrajchert hrajchert added this to the Backlog milestone May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants