Mar-26-2022, 06:48 AM
If you call the function directly the program will wait and draw the message block when the processes are done. By using apply_async() you are telling python to not wait for completion of the tasks. apply_async() returns an AsyncResult object. This can be used to wait for the process to complete. You can also specify a callback function that is called when the task completes.
You should not block as this will make the user interface unresponsive. I think using the callback is a better idea.
apply_async() is not a good choice for what you are doing. I would go with map_async()
https://docs.python.org/3/library/multiprocessing.html
You should not block as this will make the user interface unresponsive. I think using the callback is a better idea.
apply_async() is not a good choice for what you are doing. I would go with map_async()
https://docs.python.org/3/library/multiprocessing.html