Dynamic generation of user tasks

How I can create user tasks for a list of users and wait for completion.

Using a subprocess loop I manage to create a user task, assign it to the user, but I need the user to complete the task in order to continue. Can I have generation of all user tasks and then wait all of them to be completed?