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

Support action chaining #224

Open
nadenf opened this issue Jan 12, 2022 · 0 comments
Open

Support action chaining #224

nadenf opened this issue Jan 12, 2022 · 0 comments

Comments

@nadenf
Copy link

nadenf commented Jan 12, 2022

Given the following code:

Effect.action(Http.call(url).map { result =>
  Action1()
  Action2()
}

It would be useful to be able to chain Action1 and Action2 without having to create an Action3 that combines the two.

Similar to how you have EffectSeq it would be useful to have ActionSeq so we can do:

Effect.action(Http.call(url).map { result =>
  Action1() >> Action2()
}
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

No branches or pull requests

1 participant