-
Beta Was this translation helpful? Give feedback.
Answered by
louthy
Nov 14, 2023
Replies: 1 comment 1 reply
-
I realise that usage might be confusing, but there's reasons why I'm not going to change it:
If you still fell that you desperately need this overload: a good technique is to create your own |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pilotMike
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I realise that usage might be confusing, but there's reasons why I'm not going to change it:
Task
calledToUnit()
that you should apply to anyTask
you get from a 3rd party API as soon as you hold the value - it will convert yourTask
toTask<Unit>
. Then make sure all the APIs under your control return values. It's a discipline…