Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Add suspend version of composing functions #203

Open
pablisco opened this issue Jul 30, 2020 · 0 comments
Open

Add suspend version of composing functions #203

pablisco opened this issue Jul 30, 2020 · 0 comments

Comments

@pablisco
Copy link
Contributor

As mentioned in arrow-kt/arrow-fx#199 (comment) we can move the andThen function to composition.kt and then (pun half intended) make arrow-fx-coroutines depend on arrow-syntax.

This may require some investigations as currently suspend is not taken into account when doing overload of functions:
https://youtrack.jetbrains.com/issue/KT-23610

We may require to have a different @JvmName or altogether (i.e. andThenEffect).

We could also include these other permutations:

  • suspend fun andThen fun -> suspend fun
  • fun andThen fun -> suspend fun

As well as for other functions in composition.kt

@pablisco pablisco changed the title Add suspend version of andThen functions Add suspend version of composing functions Jul 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant