Search code examples
cadence-workflowtemporal-workflowuber-cadence

Difference between Async.function and Async.procedure in cadence


Team,

I don't know the difference between Async.function and Async.procedure

Let me know when to use where


Solution

  • Async.function can return a value but Async.procedure doesn't.

    Also, Functions.Func1 allow to pass a parameter, Functions.Func2 allow to pass two parameters, etc