You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, first, thanks for creating these examples. I have a few questions:
So, as we know, Flow is used for returning multiple asynchronously computed values. But here we are only doing a single task and returning a single value. Wouldn't it be more appropriate to use suspend function along with withContext { } instead of Flow for a single long running task?
I was wondering why have you used Flow? Does it offer any adavantage over withContext { } in this case?
In case, this example is only for demonstration purposes? Don't we need a more suitable example?
The text was updated successfully, but these errors were encountered:
Hi, first, thanks for creating these examples. I have a few questions:
So, as we know, Flow is used for returning multiple asynchronously computed values. But here we are only doing a single task and returning a single value. Wouldn't it be more appropriate to use suspend function along with withContext { } instead of Flow for a single long running task?
I was wondering why have you used Flow? Does it offer any adavantage over withContext { } in this case?
In case, this example is only for demonstration purposes? Don't we need a more suitable example?
The text was updated successfully, but these errors were encountered: