on-internet
← Community

How to get result of an Activity without waiting for ? In a event driven fashion

Stack Overflow ·

I have a doubt in calling activities in parallel. I know that activities can be called parallelly using the Async.function. For my use case, I wanted to call n no of activities in parallel after receiving results from all activities I wanted to go to the next state either it could another activity or a decision task. But here it gives me a Promise object which similar to Future in java. If we write promise.get() to get a result but it is blocking the thread. I need something similar to event-driven fashion without blocking the thread.

Comments

Sign in or sign up to comment and upvote.

No comments yet.