Retrofit2-Flow-Call-Adapter icon indicating copy to clipboard operation
Retrofit2-Flow-Call-Adapter copied to clipboard

Streaming only first Item And Complete

Open Kotlin-GDE opened this issue 4 years ago • 1 comments

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 avatar Feb 25 '20 14:02 Kotlin-GDE