Aller au contenu principal

Await MANY Asynchronous Activity

Non planifiée

Commentaires

3 commentaires

  • Ken Lyon

    This isn't a high priority as it's easy enough to add one Await for each query.

    0
  • Berend Veldkamp

    Okay, thanks.

     

    Is it also possible to use Await for async activities inside a For Each, i.e. similar to the Parallel For Each from workflow 4? 

    If the Await is inside the For Each, the activities will still not run parallel. If the Await comes after the For Each, only one activity will be awaited, or not?

    0
  • Ken Lyon

    Unfortunately, it gets more complicated when container activities get involved. I had initially hoped to be able to make container activities async as well. I think if the async activity and the await activity are both in the same scope (such as both inside a for each) they should behave correctly. i.e. I think it would await the async activity before continuing to the next iteration on the For Each.

    If the await comes after the For Each, I think it would await the current run of the async activity, which I would assume is the last.since the For Each has returned.

    0

Vous devez vous connecter pour laisser un commentaire.