Source

twoq / thingq / active / ordering.py

# -*- coding: utf-8 -*-
'''thingq active ordering queues'''

from thingq.core import SLOTS
from thingq.ordering import RandomMixin, OrderingMixin

from thingq.active.mixins import AutoResultMixin, ManResultMixin


class randomq(AutoResultMixin, RandomMixin):

    '''auto-balanced randomizing queue'''

    __slots__ = SLOTS


class mrandomq(ManResultMixin, RandomMixin):

    '''manually balanced randomizing queue'''

    __slots__ = SLOTS


class orderq(AutoResultMixin, OrderingMixin):

    '''auto-balanced ordering queue'''

    __slots__ = SLOTS


class morderq(ManResultMixin, OrderingMixin):

    '''manually balanced order queue'''

    __slots__ = SLOTS