-
-
Notifications
You must be signed in to change notification settings - Fork 638
UX & Code Improvements #945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
We don't have to use `async` since we don't have any returning value
About ae8dfb5As described in the commit message:
|
About 00bb33a2025-12-06.02-06-40.1.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces performance improvements through parallelization of download operations and updates the conflict detection logic for download file management.
- Refactored sequential operations to use concurrent coroutines with
map + launch + joinAllpattern instead offorEachloops - Enhanced download conflict detection to check if edited file is the same as the current file
- Changed from
async/awaitAlltolaunch/joinAllfor operations that don't return values
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| DownloadConflictDetector.kt | Updated conflict detection logic to distinguish between same file edits and actual conflicts |
| DownloadSystem.kt | Parallelized queue stopping operations and added joinAll import |
| DownloadManager.kt | Changed from async/awaitAll to launch/joinAll for pause operations |
| HomeComponent.kt | Parallelized multiple download actions (resume, pause, restart, delete) and removed exception handling wrappers |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomeComponent.kt
Outdated
Show resolved
Hide resolved
desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomeComponent.kt
Outdated
Show resolved
Hide resolved
desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/pages/home/HomeComponent.kt
Outdated
Show resolved
Hide resolved
...src/main/kotlin/com/abdownloadmanager/shared/downloaderinui/edit/DownloadConflictDetector.kt
Outdated
Show resolved
Hide resolved
…s/home/HomeComponent.kt Co-authored-by: Copilot <[email protected]>
…s/home/HomeComponent.kt Co-authored-by: Copilot <[email protected]>
…s/home/HomeComponent.kt Co-authored-by: Copilot <[email protected]>
…aderinui/edit/DownloadConflictDetector.kt Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...src/main/kotlin/com/abdownloadmanager/shared/downloaderinui/edit/DownloadConflictDetector.kt
Show resolved
Hide resolved
|
lgtm |
No description provided.