WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

[Feature Request] Support adapter for Kotlin Coroutine Flow #3497

@PatilShreyas

Description

@PatilShreyas

Feature Request

It would be great if it supports Kotlin Coroutine Flow<T> adapter for getting a response in the stream.

For example:

interface FeedApi {
    @GET("/")
    fun getPosts(): Flow<List<Post>>
}

If this is available then it will be easy to use and it'll be easy to map network response to the app's data model and for many Flow specific operations as well.

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