Inherits object.
List of all members.
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 306 of file async.py.
Member Function Documentation
def rpki.async.sync_wrapper.__call__ |
( |
|
self, |
|
|
|
args, |
|
|
|
kwargs | |
|
) |
| | |
def rpki.async.sync_wrapper.__init__ |
( |
|
self, |
|
|
|
func | |
|
) |
| | |
def rpki.async.sync_wrapper.cb |
( |
|
self, |
|
|
|
res = None | |
|
) |
| | |
Wrapped code has requested normal termination. Store result, and
exit the event loop.
Definition at line 324 of file async.py.
def rpki.async.sync_wrapper.eb |
( |
|
self, |
|
|
|
err | |
|
) |
| | |
Wrapped code raised an exception. Store exception data, then exit
the event loop.
Definition at line 332 of file async.py.
Member Data Documentation
The documentation for this class was generated from the following file: