Skip to content

SharedFlow last() never returns #3275

Open
@Burtan

Description

@Burtan

Hi,

when using SharedFlows the function last() delivered by Reduce.kt through extensions will never return. It collects the flow and suspends until it is completed, but SharedFlows never complete.
For intuitive usage last() in SharedFlows should be a shortcut for replayCache.last()

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions