Skip to content

Parallelize get, install & update #586

Description

@rgoldberg

Parallelize get, install & update.

Parallelization is more complex for these commands than for other commands, because they update existing terminal lines to update process bars. Currently, mas just updates the current line, but parallel downloads will require different lines being updated depending on which app's progress is being updated.

When an error occurs for a single parallel operation, other operations that can succeed should be let finish.

Probably not worth parallelizing uninstall, as that should be quick & not run much.

Swift Concurrency: async let, TaskGroup & withTaskGroup.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions