Skip to main content

A queue between thread with method push,drop old put into new

Project description

# CustomQueue

  • CustomeQueue 继承自queue.Queue
  • 只是新增一个push方法 - push(new_item) - 当该队列满的时候,会将队列中最先入队列的元素old_item取出来,会将new_item放入队列 - 然后返回old_item - 当队列不满的时候,直接将new_item入队列,然后返回None - 理论上这个方法不阻塞,也不会抛出异常

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for push-queue, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size push_queue-1.1.0-py2.py3-none-any.whl (2.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size push_queue-1.1.0.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page