Implement background services for the application. This is implemented as a cooperative concurrent task.
A decorator for a function. Service is triggered on return.
Overrided to implement the service task. This must be a generator. Use yield to return control.
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.
Implements: - Threadlocal stack