waitForStateConsumption

Suspends the current flow until all the provided StateRefs have been consumed.

WARNING! Remember that the flow which uses this async operation will NOT wake-up until all the supplied StateRefs have been consumed. If the node isn't aware of the supplied StateRefs or if the StateRefs are never consumed, then the calling flow will remain suspended FOREVER!!

Parameters

stateRefs

the StateRefs which will be consumed in the future.