# Class k.t.WaitForMessages(WaitCondition):

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):
overrides kiwi.tasklet.WaitCondition.__init__
Creates an object that waits for a set of messages to arrive.

Parameters | accept | message name or names to accept (receive) in the current state (type: string or sequence of string )
| defer | message name or names to defer (queue) in the current state (type: string or sequence of string )
| discard | message name or names to discard (drop) in the current state (type: string or sequence of string )
Note | unlike 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 kiwi.tasklet.WaitCondition.arm
Overrides WaitCondition.arm

def disarm(self):
overrides kiwi.tasklet.WaitCondition.disarm
Overrides WaitCondition.disarm