Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate getResultAsync calls inside WorkflowClient or WorkflowStub #1413

Open
Tracked by #778
Spikhalskiy opened this issue Sep 10, 2022 · 0 comments
Open
Tracked by #778
Labels
enhancement User experience

Comments

@Spikhalskiy
Copy link
Contributor

Is your feature request related to a problem? Please describe.
If users call getResultAsync on the same stub several times or if they call getResultAsync on different stubs for the same workflow execution, SDK will open a new long poll for each such request.

Describe the solution you'd like
SDK should deduplicate such calls and open only one long poll under the hood as an optimization, so users don't have to think about it in their code.

Additional context
This task should likely be paired with #1212, as both require changes in the internal structure of the same area of SDK code.

@Spikhalskiy Spikhalskiy added the enhancement User experience label Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement User experience
Projects
None yet
Development

No branches or pull requests

1 participant