Is there a way for me to call the loading spinner from the api when I have a background task that takes a long time.