Published onJuly 29, 2020Flask API — How to return response but continue executionflaskapithreadingAfter receiving the API request, create a new thread and run your function there. You can pass your desired data in kwargs.