Subprocess

mosaic.utils.subprocess.subprocess(target)[source]

A decorator that will execute a target function in a subprocess. The generated subprocess will be encapsulated in a class that has methods to manage the subprocess.

Parameters

target (callable) – Target function to be executed in the subprocess

Returns

Instance of class Subprocess.

Return type

Subprocess