Got a question:
- I have three
suspend
operations, each can be called independently:
foo1(list)
,
foo2(list)
and
foo3(list)
- each function changes state of items in list
-
foo1
just makes request to the server and returns updated list (updates 1 step)
-
foo2
calls
foo1
and then with combined result makes a request (updates 2 steps)
-
foo3
calls
foo2
, combines result and makes a request (updates 3 steps)
Problem is,
foo2
needs to gather data (SMS-code) via DialogFragment.
Is there a way to build a continuous pipeline, so the
foo3
can continue its flow after
foo2
called a dialog, gathered input and returned?