Why would one want to be aware of the used coroutine scope ?
s
streetsofboston
02/12/2020, 2:27 AM
You don't need launchIn. The launchIn changes the scope in which the Flow is emitting items. If launchIn is not specified, this scope is the same scope in which the Flow's 'collect' is called. When 'collect' is called within a 'suspend' fun, the scope is the calling/outer CoroutineScope.