Does anyone know what the the sentence "Note that ...
# flow
r
Does anyone know what the the sentence "Note that the resulting value of launchIn is not used and the provided scope takes care of cancellation." means in the description of
launchIn
in the documentation. Does this mean the returned job cannot be used to cancel it?
f
I believe that the
the resulting value
part refers to the collected value from the flow, as the doc indicates, this is equivalent to
collect()
where the value is dropped. You can hold onto the returned
job
and use that to cancel the flow manually.
r
Thank you