Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B Bolts-ObjC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 34
    • Issues 34
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • BoltsFramework
  • Bolts-ObjC
  • Issues
  • #272
Closed
Open
Issue created Jul 15, 2016 by Administrator@root

`[BFTask taskForCompletionOfAllTasksWithResults:tasks]` (BUT IN SERIES)

Created by: tettoffensive

I have an undefined number of tasks that I would normally run in parallel. but they involve AVFoundation encoding which errors out when the tasks run in parallel. So I'd ideally like a similar method that just chained them together with the final task.result being the array of tasks (just as taskForCompletionOfAllTasksWithResults has.

Right now I'm just looping through the array myself and chaining them together. But in this case I only have the result from the task at the end of the chain.

BFTask *taskChain = nil;
    for (BFTask *task in tasks) {
        if (!taskChain) {
            taskChain = task;
        } else {
            taskChain = [taskChain continueWithSuccessBlock:^id _Nullable(BFTask * _Nonnull task) {
                return task;
            }];
        }
    }
Assignee
Assign to
Time tracking