Skip to content

Commit

Permalink
inbox browser: lower priority of conversations streaming in favor of …
Browse files Browse the repository at this point in the history
…faster background workers
  • Loading branch information
LinqLover committed Aug 27, 2023
1 parent a621785 commit 6d30c3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
background workers
backgroundWorkerPriorityFor: aSymbol
"Give a higher priority to the #contents generation so that the preview will be displayed before all filters have completed."

^ (super backgroundWorkerPriorityFor: aSymbol) + (aSymbol = #contents ifTrue: [1] ifFalse: [0])
^ (super backgroundWorkerPriorityFor: aSymbol) + (aSymbol
caseOf: {
"Give a higher priority to the #contents generation so that the preview will be displayed before all filters have completed."
[#contents] -> [1].
"As of now takes too long, do not block other shorter workers"
[#conversations] -> [-1]}
otherwise: [0])
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"appMenu:" : "ct 12/2/2022 00:28",
"appName" : "ct 5/20/2021 19:04",
"aspectDependencies" : "ct 5/9/2023 15:02",
"backgroundWorkerPriorityFor:" : "ct 7/24/2021 02:01",
"backgroundWorkerPriorityFor:" : "ct 8/26/2023 02:57",
"browse:" : "ct 7/22/2021 20:26",
"browseContributions" : "ct 6/15/2021 19:38",
"buildButtonBar:" : "ct 1/10/2023 17:27",
Expand Down

0 comments on commit 6d30c3c

Please sign in to comment.