This message was deleted.
# coroutines
s
This message was deleted.
l
not sure if I got it right but instead of
if (mappingJob != null) mappingJob?.cancel()
you can do something like
if (mappingJob?.isActive == true) mappingJob?.cancel()
is something like that?
👍 1
c
Thanks @leosan, that works (not like fixing the problem I currently have), just wanted to cancel irrespective of the active condition.