Run tasks in parallel or one after another.