class documentation

class AsyncDeferredMailbox(DummyMailbox): (source)

View In Hierarchy

Mailbox which has a listMessages implementation which returns a Deferred which has not yet fired.

Method __init__ Undocumented
Method listMessages Record a new unfired Deferred in self.waiting and return it.
Instance Variable waiting Undocumented

Inherited from DummyMailbox:

Method deleteMessage Wipe the message at the given index.
Method getMessage Get the message content.
Method getUidl Construct a UID which is simply the string representation of the given index.
Instance Variable exceptionType The type of exception to raise when an out-of-bounds index is addressed.
Instance Variable messages A sequence of bytes defining the messages in this mailbox.

Inherited from Mailbox (via DummyMailbox):

Method sync Discard the contents of any message marked for deletion.
Method undeleteMessages Undelete all messages marked for deletion.
def __init__(self, *a, **kw): (source)
def listMessages(self, n=None): (source)

Record a new unfired Deferred in self.waiting and return it.

Parameters
n:int or NoneThe 0-based index of the message.
Returns
The Deferred

Undocumented