Module Expr Str ImportFrom alias alias alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr TryFinally body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body With NameLoad body Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Expr Yield While NameLoad body Expr Call NameLoad Str NameLoad AugAssignAdd NameStore Num Expr Yield decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr With NameLoad body Expr Call NameLoad Str FunctionDef arguments args defaults body Expr Call NameLoad Str decorator_list AttributeLoad NameLoad attr Expr Call NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Implement background services for the application.
This is implemented as a cooperative concurrent task.
 __future__ absolute_import print_function division N/A functools Service N/A object N/A __init__ N/A N/A self name arg N/A unnamed None N/A N/A N/A self name name N/A N/A self enabled True N/A N/A self arg arg N/A N/A self _task N/A N/A self process N/A self arg N/A N/A next N/A self _task N/A service N/A N/A self N/A N/A N/A 
        Request for the service task.
        Servicing is disabled if it is disabled thourght the "enabled"
        attribute.  When the task is executing, the service is disabled to
        avoid recursion.
         N/A N/A self enabled N/A N/A enable N/A self enabled N/A N/A N/A N/A self enabled False N/A N/A next N/A self _task N/A N/A N/A self enabled enable N/A process N/A N/A self arg N/A N/A N/A 
        Overrided to implement the service task.
        This must be a generator.
        Use `yield` to return control.
         N/A NotImplementedError N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self exc_type exc_val exc_tb N/A N/A N/A N/A N/A self service N/A after N/A N/A self fn N/A N/A N/A 
        A decorator for a function. Service is triggered on return.
         wrap N/A N/A N/A args kws N/A N/A self N/A N/A N/A fn args kws N/A N/A N/A functools wraps fn N/A wrap N/A N/A HelloService N/A Service N/A process N/A N/A self arg N/A N/A N/A count 0 N/A N/A N/A True N/A N/A N/A print Hello count N/A count 1 N/A N/A N/A N/A test N/A N/A N/A N/A N/A serv N/A HelloService my.hello N/A N/A print 1 N/A N/A N/A serv service N/A N/A print 2 N/A N/A N/A serv service N/A serv N/A N/A N/A print 3 nested N/A N/A N/A N/A N/A N/A print 4 N/A N/A serv after N/A N/A nested N/A N/A N/A __name__ __main__ N/A N/A N/A test