Swift Playground- Can I run different func at same time?

Hi there,

Before I post this in here, I have quick googled it but didn't found accurate answer. I'm in Chapters 2 the end of Parameters, I just want 3 rows's Character to solve the puzzle at same time, but I really don't know what way can do it, if I line the func one by one, they just complete one by one. Could you have any ideas, thanks a lot~

Answered by Claude31 in 715693022

You may try to run each in a different thread (dispatch queue).

Can you write exactly which exact playground exercise you are doing? Maybe I can help.

Could you please post what exact playground you are making? I might be able to help.

Accepted Answer

You may try to run each in a different thread (dispatch queue).

Thanks Claude. You mean like this:

Func01 Func02 Func03

I'v tried this, it's not work, it'll run like 01-02-03, but I want to run 01/02/03 at same time.

Swift Playground- Can I run different func at same time?
 
 
Q