depends how you use AsyncTask, it will produce different answer.
from me, you should check the implementation and options you have, like coroutines, java executor, rxjava, those have different implementations, analyze and judge which one is more suitable for your use cases.