Casey Brooks
01/12/2023, 4:04 PM.invokeOnClose { }
documentation states that “The handler is invoked when `Channel.isClosedForSend' starts to return true." Is there any equivalent mechanism for being notified when Channel.isClosedForReceive
starts to return true?Casey Brooks
01/12/2023, 4:05 PMSam
01/12/2023, 4:14 PMFlow
instead of a Channel
, you could use onCompletion
Casey Brooks
01/12/2023, 4:18 PMkevin.cianfarini
01/12/2023, 4:18 PMChannel.recieveAsFlow
kevin.cianfarini
01/12/2023, 4:18 PMchannelFlow
and callbackFlow
buildersCasey Brooks
01/12/2023, 4:23 PMChannel.receiveAsFlow().onCompletion
might to do what I need. Thanks y’all!kevin.cianfarini
01/12/2023, 4:24 PMrecieveAsFlow
and consumeAsflow
you should look at the docs for each and use whichever function is proper for your use case.