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

WorkflowRunner now delivers single result instead of output stream. #468

Merged
merged 1 commit into from
Jul 16, 2019

Conversation

rjrjr
Copy link
Contributor

@rjrjr rjrjr commented Jul 16, 2019

Android's configuration changes make it very difficult to craft an API that
can catch all output values and also avoid double-processing of them, and each
such API we've come up with is very confusing. The cognitive cost outweighs
the benefit of allowing the Activity or Fragment to consume a stream of
outputs — if that's even a benefit! So far we have no use cases for a stream
v. a single result code that can't be better handled inside the root workflow.

Note that we update the Tic Tac Toe sample to take advantage. We also
(nearly) make it's back button work properly on the initial screen, but
that is blocked by #466.

Closes #430.

@zach-klippenstein zach-klippenstein added this to In progress in Workflow (Kotlin) via automation Jul 16, 2019
@zach-klippenstein zach-klippenstein added this to the kotlin v0.19.0 milestone Jul 16, 2019
@rjrjr rjrjr force-pushed the ray/livedata-attempt-deux-430 branch 2 times, most recently from 776389d to 5b4cc94 Compare July 16, 2019 21:21
Android's configuration changes make it very difficult to craft an API that
can catch all output values and also avoid double-processing of them, and each
such API we've come up with is very confusing. The cognitive cost  outweighs
the benefit of allowing the Activity or Fragment to consume a stream of
outputs — if that's even a benefit! So far we have no use cases for a stream
v. a single result code that can't be better handled inside the root workflow.

Note that we update the Tic Tac Toe sample to take advantage. We also
(nearly) make it's back button work properly on the initial screen, but
that is blocked by #466.

Closes #430.
@rjrjr rjrjr force-pushed the ray/livedata-attempt-deux-430 branch from 5b4cc94 to 74707b2 Compare July 16, 2019 22:06
@rjrjr
Copy link
Contributor Author

rjrjr commented Jul 16, 2019

Forgot to run build connectedCheck myself. Last couple of updates fix style issues, broken sample MainWorkflowTest.

@zach-klippenstein
Copy link
Collaborator

I'll merge this as soon as I cut 0.18.0.

@zach-klippenstein zach-klippenstein merged commit ba68a44 into master Jul 16, 2019
Workflow (Kotlin) automation moved this from In progress to Done Jul 16, 2019
@zach-klippenstein zach-klippenstein deleted the ray/livedata-attempt-deux-430 branch July 16, 2019 23:07
@zach-klippenstein zach-klippenstein added the kotlin Affects the Kotlin library. label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kotlin Affects the Kotlin library.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Workflows started with setContentWorkflow may drop early output emissions.
2 participants