can I use parallel_invoke to execute the same function multiple times
like I have function scan which traverse a string can I make the same multiple tasks operate on it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can.
Alternatively you can use a task_group:
If you want to run it as often as you have CPU-cores, you can do it like this: