Use a Queue, python has a threadsafe Queue class. Push the function you want to run on the background thread onto the queue.
確定! 回上一頁