android / codelab-kotlin-coroutines

Kotlin Coroutines codelab
Apache License 2.0
552 stars 268 forks source link

onCompletion() is not called on growZoneChannel registered method #102

Closed vimosanandev closed 4 years ago

vimosanandev commented 4 years ago

Hi, In the view-model init method we have registered a growZoneChannel. In that channel we have used mapLatest and in onCompletion we are disabling the spinner. Actually, onCompletion method is not called.

note: In your finished code, you haven't delete the launchData method. Through tad method, the spinner get disabled. But, the growZoneChannel onCompletion is not called even in your finalised code.