k.t.WaitForMessages(WaitCondition) : class documentation

Part of kiwi.tasklet View In Hierarchy

An object that waits for messages to arrive
Method __init__ Creates an object that waits for a set of messages to
Method arm Overrides WaitCondition.arm
Method disarm Overrides WaitCondition.disarm
def __init__(self, accept=None, defer=None, discard=None):
Creates an object that waits for a set of messages to arrive.
Parametersacceptmessage name or names to accept (receive) in the current state (type: string or sequence of string )
defermessage name or names to defer (queue) in the current state (type: string or sequence of string )
discardmessage name or names to discard (drop) in the current state (type: string or sequence of string )
Noteunlike other wait conditions, when a message is received, a Message instance is returned by get_event(), not the WaitForMessages instance.
def arm(self, tasklet):
Overrides WaitCondition.arm
def disarm(self):
Overrides WaitCondition.disarm
API Documentation for Kiwi, generated by pydoctor at 2010-05-20 02:10:57.