Thiago
02/24/2021, 3:35 PMreceiveAsFlow to transform a Channel in Flow. After cancel the CoroutineScope where I'm collecting the Channel values it seems not have closed the Channel. Can be codes like below create leaks without call close() ?
Should I add a call to invokeOnCompletion to make sure that close my Channel as:
invokeOnCompletion {
channel.close()
}travis
02/24/2021, 4:49 PMconsumeAsFlow to have it close the upstream Channel when you stop collecting.