FlowLogic.initiateFlow - corda

corda / net.corda.core.flows / FlowLogic / initiateFlow

# initiateFlow

`@Suspendable fun initiateFlow(destination: Destination): FlowSession`

Creates a communication session with destination. Subsequently you may send/receive using this session object. How the messaging is routed depends on the Destination type, including whether this call does any initial communication.

`@Suspendable fun initiateFlow(party: Party): FlowSession`

Creates a communication session with party. Subsequently you may send/receive using this session object. Note that this function does not communicate in itself, the counter-flow will be kicked off by the first send/receive.