Ahenk/usr/share/ahenk/base/plugin/plugin_queue.py

12 lines
280 B
Python
Raw Normal View History

2020-04-06 18:10:41 +03:00
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
from queue import Queue
class PluginQueue(Queue):
def __contains__(self, item):
with self.mutex:
return item in self.queue