Skip to content

Using flow vs channel for scan results #5

Open
@gautamjain

Description

@gautamjain

Hi Louis,

The scanChannel extension function currently returns a Channel. Do you think a Flow might be more suitable here?

I'm new to channels/flows/coroutines, so my understanding may not be correct. A Flow would allow more flexibility in when scanning should actually start - e.g. only after the user calls collect.

Current API works fine for my needs, but I was curious about your thoughts.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions