How to not wait for function to finish python

后端 未结 5 1209
青春惊慌失措
青春惊慌失措 2021-02-19 11:42

I\'m trying to program a loop with a asynchronous part in it. I dont want to wait for this asynchronous part every iteration though. Is there a way to not wait for this function

5条回答
  •  轮回少年
    2021-02-19 12:14

    use thread. it creates a new thread in that the asynchronous function runs

    https://www.tutorialspoint.com/python/python_multithreading.htm

提交回复
热议问题