kingsley
03/20/2017, 8:25 PMprivate val callbackContext = ...
fun request(...) {
pendingJob?.cancel()
pendingJob = launch(callbackContext) {
delay(DEBOUNCE_PERIOD)
...
suspendingFun()
...
}
}
suspend fun suspendingFun(...) {
someApi().await()
...
}
This used to work fine in version 0.12. Currently on version 0.14, the launch block doesn't seem to execute more than once anymore. Not sure what the problem iselizarov
03/21/2017, 6:07 AMkingsley
03/25/2017, 11:57 AMelizarov
03/25/2017, 3:12 PM