Hi all
I want to seperate task creation and task start, but I want to use all available threads.
Thanks
Hi all
I want to seperate task creation and task start, but I want to use all available threads.
Thanks
There is my anwser.
By default tasks will have the sticky bit set to true
t.sticky
. This models the historic default for@async
. Sticky tasks can only be run on the worker thread they are first scheduled on. To obtain the behavior ofThreads.@spawn
set the sticky bit manually tofalse
.