I’m using AIButton in my app and I have a AsyncTask which gets executed after AIButton is clicked and receives some command and AsyncTask sometimes
AIButton
AsyncTask
if you want to cancel the AsyncTask class translate.cancel()
if you want to cancel the server request I recommend to use OKHTTP has a cancel request feature