Source

callchain / callchain / linked / lazyauto.py

# -*- coding: utf-8 -*-
'''lazy auto-balancing linked chains'''

from appspace import key
from twoq.lazy import AutoResultMixin
from callchain.linked.keys import KLinkedResult
from callchain.linked.core import EventLinked, PriorityLinked, ChainLinked


@key(KLinkedResult)
class chainlink(ChainLinked, AutoResultMixin):

    '''linked chain'''


@key(KLinkedResult)
class prioritylink(PriorityLinked, AutoResultMixin):

    '''priority linked chain'''


@key(KLinkedResult)
class eventlink(EventLinked, AutoResultMixin):

    '''lite linked event chain'''