Apr-04-2021, 03:28 PM
Line 11: you do realise that you're calling
the_watcher
on the main thread and that you're passing its return value as the value for target
, right? Think about it, you want the function to run on a separate thread, so you pass the function itself, rather than calling it and passing its return value.