Retrofit2-Flow-Call-Adapter
Retrofit2-Flow-Call-Adapter copied to clipboard
Streaming only first Item And Complete
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