This allows e.g. utils.utils.run_async to offload long-running functions to a completely different subprocess entirely, offering real parallelism. Implementation is still experimental, notably not all objects can be transferred safely across the wire; also there is no concept of updating caches yet - so adding an object from the subprocess side will not be known in the main thread yet (since caches cannot yet tell the underlying database has changed).
4 lines
130 B
Python
4 lines
130 B
Python
from pool import deferToAMPProcess, pp
|
|
from commands import Shutdown, Ping, Echo
|
|
from child import AMPChild
|
|
__version__ = "0.2.1"
|