numba.servicelib package

Submodules

numba.servicelib.service module

Implement background services for the application. This is implemented as a cooperative concurrent task.

class numba.servicelib.service.HelloService(name='unnamed', arg=None)

Bases: numba.servicelib.service.Service

process(arg)
class numba.servicelib.service.Service(name='unnamed', arg=None)

Bases: object

after(fn)

A decorator for a function. Service is triggered on return.

process(arg)

Overrided to implement the service task. This must be a generator. Use yield to return control.

service()

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.

numba.servicelib.service.test()

numba.servicelib.threadlocal module

Implements: - Threadlocal stack

class numba.servicelib.threadlocal.TLStack

Bases: object

clear()
is_empty
pop()
push(item)
stack
top

Module contents