kiliankoe / swift-outdated

A swift subcommand for displaying when your dependencies (SwiftPM or Xcode) are out of date
MIT License
342 stars 14 forks source link

Parallelize fetching remote tags #6

Closed kiliankoe closed 3 years ago

kiliankoe commented 3 years ago

Since these don't depend on another, it should be possible to fetch tags for remotes simultaneously to decrease loading time.

o15a3d4l11s2 commented 3 years ago

Do you have in mind how you want to do this? If you are not in a hurry thing might be a great opportunity to try async/awais once it becomes part of Swift: https://github.com/apple/swift-evolution/blob/main/proposals/0296-async-await.md Otherwise there are plenty of libraries providing promises, which would accomplish this. I am just curious 😀

kiliankoe commented 3 years ago

I thought about just using classic DispatchGroups for now, but later refactoring to use async/await would be extremely cool!