kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Add "scanNotNull" function to Flow extension
Adds feature #3806 This adds the "scanNotNull" function as an extension to the Flow class. The "scanNotNull" function allows folding the flow's values using a provided operation and emitting every intermediate non-null result. It skips emitting any intermediate results that are null, ensuring only non-null results are included in the resulting flow.