Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming only first Item And Complete #1

Open
Kotlin-GDE opened this issue Feb 25, 2020 · 1 comment
Open

Streaming only first Item And Complete #1

Kotlin-GDE opened this issue Feb 25, 2020 · 1 comment

Comments

@Kotlin-GDE
Copy link

Kotlin-GDE commented Feb 25, 2020

hi

@GET("....) fun findAll() : Flow<T>
when call this function with retrofit : 
val job = retrofitService.findAll().onEach { .... }.launchIn(coroutineScope)
job.invokeOnCompletion { ..... }

it display to first item an complete

@Kotlin-GDE Kotlin-GDE changed the title Streming only first Item And Complete Streaming only first Item And Complete Feb 25, 2020
@MohammadSianaki
Copy link
Owner

I couldn't reproduce your bug, please provide more information. What is the return type of findAll()?

Repository owner deleted a comment from OmerTurann Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@MohammadSianaki @Kotlin-GDE and others