Companion

object Companion

Properties

Link copied to clipboard

Return the outermost FlowLogic instance, or null if not in a flow.

Functions

Link copied to clipboard
fun sleep(duration: Duration, maySkipCheckpoint: Boolean = false)

If on a flow, suspends the flow and only wakes it up after at least duration time has passed. Otherwise, just sleep for duration. This sleep function is not designed to aid scheduling, for which you should consider using net.corda.core.contracts.SchedulableState. It is designed to aid with managing contention for which you have not managed via another means.