Colton Idle
03/08/2022, 9:17 PMinit {
viewModelScope.launch {
myState.queryText.debounce(250).collectLatest {
search(it)
}
}
}
private suspend fun search(term: String) {
val result = service.searchApiCall(term)
...
I'm trying to manually verify that service.searchApiCall is actually cancelled. I'm looking at the requests through charles proxy but it doesn't seem to cancel there. I'm assuming that a cancellation on retrofit can't actually cancel the in flight request right? My networking inexperience is kinda failing me here, but would appreciate any pointers to make sure that Im cancelling correctly.