How to create task firstly and start it not on the main thread?

Hi all :slight_smile:

I want to seperate task creation and task start, but I want to use all available threads.


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 of Threads.@spawn set the sticky bit manually to false .