RPKI Engine  1.0
Public Member Functions | Public Attributes
rpki::async::iterator Class Reference
Inheritance diagram for rpki::async::iterator:
Inheritance graph
Collaboration diagram for rpki::async::iterator:
Collaboration graph

List of all members.

Public Member Functions

def __call__
def __init__
def __repr__
def doit

Public Attributes

 caller_function
 done_callback
 item_callback
 iterator
 unwind_stack

Detailed Description

Iteration construct for event-driven code.  Takes three
arguments:

- Some kind of iterable object

- A callback to call on each item in the iteration

- A callback to call after the iteration terminates.

The item callback receives two arguments: the callable iterator
object and the current value of the iteration.  It should call the
iterator (or arrange for the iterator to be called) when it is time
to continue to the next item in the iteration.

The termination callback receives no arguments.

Definition at line 26 of file async.py.


Constructor & Destructor Documentation

def rpki::async::iterator::__init__ (   self,
  iterable,
  item_callback,
  done_callback,
  unwind_stack = True 
)

Definition at line 45 of file async.py.


Member Function Documentation

def rpki::async::iterator::__call__ (   self)

Definition at line 64 of file async.py.

References rpki::async::defer(), doit(), and unwind_stack.

Here is the call graph for this function:

def rpki::async::iterator::__repr__ (   self)

Definition at line 59 of file async.py.

References caller_function.

def rpki::async::iterator::doit (   self)
Implement the iterator protocol: attempt to call the item handler
with the next iteration value, call the termination handler if the
iterator signaled StopIteration.

Definition at line 70 of file async.py.

References done_callback, and item_callback.

Referenced by __call__().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 45 of file async.py.

Referenced by __repr__().

Definition at line 45 of file async.py.

Referenced by doit().

Definition at line 45 of file async.py.

Referenced by doit().

Definition at line 45 of file async.py.

Definition at line 45 of file async.py.

Referenced by __call__().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties