I would have kept using the solution that is known to work
If you ask me that article is complete nonsense.
This approach is nice if your worker task needs an event loop, but just overhead if the task is running a single blocking function.
You are calling "task()" in the context of the main thread.
Cheers,
_
Bookmarks