What is better: capturing in the main thread or in a separate threads?
David Moore wrote: Capturing in the main thread has the advantage that you don’t need to use synchronization primitives like mutexes or message queues to protect shared data structures in separate threads from race conditions. However, you have the disadvantage that if you perform long-running computations during callbacks, you will hurt the responsiveness of your GUI.