blockUntilAllCompleted

abstract suspend fun blockUntilAllCompleted(processes: Set<KSLProcess>, resumptionPriority: Int = RESUME_PRIORITY, suspensionName: String? = null)

Causes the current process to block until all the specified processes completes. This function does not activate the specified processes. The specified processes must have been previously activated. If all specified processes have already completed, then no blocking occurs. In other words, the call immediately returns. If any of the specified processes have terminated, then an exception occurs.

Parameters

processes

the processes to block for. The supplied processes must not be terminated and cannot be the same as the current process.

resumptionPriority

a priority indicator to inform ordering when there is more than one process blocking for the specified processes

suspensionName

the name of the blockUntilCompletion. can be used to identify which blockUntilCompletion the entity is experiencing if there are more than one blockUntilCompletion suspension points within the process. The user is responsible for uniqueness.