rpki.async.sync_wrapper Class Reference

Inherits object.

List of all members.

Public Member Functions

def __call__
def __init__
def cb
def eb

Public Attributes

 func

Static Public Attributes

 err = None
 res = None

Detailed Description

Synchronous wrapper around asynchronous functions.  Running in
asynchronous mode at all times makes sense for event-driven daemons,
but is kind of tedious for simple scripts, hence this wrapper.

The wrapped function should take at least two arguments: a callback
function and an errback function.  If any arguments are passed to
the wrapper, they will be passed as additional arguments to the
wrapped function.

Definition at line 300 of file async.py.


Member Function Documentation

def rpki.async.sync_wrapper.__call__ (   self,
  args,
  kwargs 
)

Definition at line 326 of file async.py.

def rpki.async.sync_wrapper.__init__ (   self,
  func 
)

Definition at line 315 of file async.py.

def rpki.async.sync_wrapper.cb (   self,
  res = None 
)

Definition at line 318 of file async.py.

def rpki.async.sync_wrapper.eb (   self,
  err 
)

Definition at line 322 of file async.py.


Member Data Documentation

rpki.async.sync_wrapper.err = None [static]

Definition at line 313 of file async.py.

Definition at line 316 of file async.py.

rpki.async.sync_wrapper.res = None [static]

Definition at line 312 of file async.py.


The documentation for this class was generated from the following file:

Generated on Tue Jan 12 07:56:02 2010 for RPKI Engine by  doxygen 1.6.1