You dont.
You spawn an actor, then set the values to what you want. Spawning from the Blueprint does this. Nothing written code does not do this. However you make a single line of code look it is still executing 1 instruction at a time, however many dozens, hundreds, thousands, or millions of instructions are invoked. They are still only executed 1 instruction at a time.
I’m not sure where you got this “1task=1function” idea, but you might as well unlearn that right now. Your entire application is running from a single function called main(). EVERYTASK = 1 function.