suspend

abstract suspend fun suspend(suspensionName: String? = null)

Deprecated

The general suspend function is error prone and may be replaced with other constructs in future releases

Suspends the execution of the process. Since the process cannot resume itself, the client must provide a mechanism that resumes the process. The most basic strategy would be to store a "globally" available reference to the entity that is suspending. The reference can then be used to resume the process via the entity's resumeProcess() function.

The method suspend() is used for implementing higher level functionality.

Parameters

suspensionName

a name for the suspension point. Can be used to determine which suspension point the entity is in when there are multiple suspension points, assuming that every suspension point has a unique suspension name..