Execute a new background process which will perform the given processFunc.
A function which will be performed asynchronously.
A configuration object. This depends on each implementation of this interface. But, at least, it should contain the following
properties:
{
"type": "string",
"name": "string"
}
A Promise which will be resolved when the execution is done and its result is the value
returned from the given processFunc. If the given processFunc returns a Promise,
this method will return that Promise directly.
Get models of running processes by the given typeName and name. If you want to
get all running process models in the system, just pass null into all parameters.
A process type name. Passing null means no filter or including all type names.
A process name. Passing null means no filter or including all process names.
An array of running process models according to the given typeName and name.
This method will return an empty array if no matching running process found.
Get the running processes count by the given typeName and name. If you want to
count all running processes in the system, just pass null into all parameters. The returning value of this method must be
the same as array's length returned from getRunningProcesses method.
A process type name. Passing null means no filter or including all type names.
A process name. Passing null means no filter or including all process names.
A number of running processes according to the given typeName and name.
This method will return 0 if no matching running process found.
Generated using TypeDoc
A
ngservice interface mainly handlesapplication'sbackground processexecutions. Despite thengframework provides you anasynchronousexecution mechanism viaPromiseorObserveralready, this service aims to make all thoseasynchronousexecutions easily monitorable by the user. For example, if yourapplicationneeds to execute multipleasynchronoususer's tasks such as saving multiple documents to the backend server at the same time, by using this service, it will keep record of those processes and give you the information about which one is running or is complete at any time.shiorin, tee4cute
BackgroundProcessManager