Commits

Anonymous committed ae0f2b6

ireturn number of waiting rather than boolean which was expected

  • Participants
  • Parent commits 42328f3

Comments (0)

Files changed (1)

     def waiting(self):
         """Return the number of routines waiting for a pool item.
         """
-        return self.channel.qsize() <= self.max_size
+        return self.max_size - self.channel.qsize()
     
     def create(self):
         """Generate a new pool item