comb.demo.* — Slot demo classes

List.Slot

class comb.demo.list.Slot(combd)[source]

Don’t override this method unless what you’re doing.

Slot.initialize()[source]

Hook for initialization.

This block is execute before thread initial

Example:

class UserSlot(Slot):
    def initialize(self):
        ...

    def slot(self, result):
        ...
Slot.__enter__()[source]
Slot.slot(result)[source]
Slot.__exit__(exc_type, exc_val, exc_tb)[source]

Redis.Slot

class comb.demo.redis.Slot(combd)[source]

Don’t override this method unless what you’re doing.

Slot.initialize()[source]
This block is execute before thread initial

Example:

class UserSlot(Slot):
    def initialize(self,*args,**kwargs):
        self.attr = kwargs.get('attr',None)

    def slot(self, result):
        ...
Slot.__enter__()[source]
Slot.slot(result)[source]
Slot.__exit__(exc_type, exc_val, exc_tb)[source]