CancelJobs cancels asynchronous processes launched by the RunProcess function and is blocked under these conditions: lock acquisition on an object used by the process, wait for another process to finish, and execute the Sleep function within the process. When a job is cancelled, any pending changes are rolled back.
In this video, CancelJobs is used to wait for both asynchronous processes to complete before continuing to the next line.
TurboIntegrator
Version 12
CancelJobs(ID1, ID2, etc.)