Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
fix(core): Change fill executor capacity logic (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert authored Aug 16, 2018
1 parent c210bfb commit 84562f6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ class QueueProcessor(
ifEnabled {
if (executor.hasCapacity()) {
if (fillExecutorEachCycle) {
val availableCapacity = executor.availableCapacity()
availableCapacity.downTo(0).forEach {
while (executor.hasCapacity()) {
pollOnce()
}
} else {
Expand Down

0 comments on commit 84562f6

Please sign in to comment.