FlowLogic.await - corda

corda / net.corda.core.flows / FlowLogic / await

# await

`@Suspendable fun <R : Any> await(operation: FlowExternalAsyncOperation<R>): R`

Executes the specified operation and suspends until operation completion.

An implementation of FlowExternalAsyncOperation should be provided that creates a new future that the state machine awaits completion of.

`@Suspendable fun <R : Any> await(operation: FlowExternalOperation<R>): R`

Executes the specified operation and suspends until operation completion.

An implementation of FlowExternalOperation should be provided that returns a result which the state machine will run on a separate thread (using the node's external operation thread pool).