Suspension

constructor(name: String? = null, type: SuspendType = SuspendType.SUSPEND)

Parameters

name

the name of the suspension. Useful for debugging and tracking of suspensions. Defaults to null. If null, a useful name is created based on its identity.

type

the type of suspension. By default, this is the general type, SuspendType.SUSPEND.