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

Consider potential range-over-func APIs #1593

Open
Quinn-With-Two-Ns opened this issue Aug 15, 2024 · 2 comments
Open

Consider potential range-over-func APIs #1593

Quinn-With-Two-Ns opened this issue Aug 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Quinn-With-Two-Ns
Copy link
Contributor

Is your feature request related to a problem? Please describe.
With Go 1.23 range-over-func was brought into the language allowing the implementation of iterator like patterns

Describe the solution you'd like
Consider what APIs we can add to the Go SDK to take advantage of range-over-func

Additional context
https://go.dev/wiki/RangefuncExperiment

@Quinn-With-Two-Ns Quinn-With-Two-Ns added the enhancement New feature or request label Aug 15, 2024
@Quinn-With-Two-Ns
Copy link
Contributor Author

Possible APIS

Workflow

  • Workflow channel iterator
  • Deterministic map iterator

Client

  • List workflow and schedule iterators

@cretz
Copy link
Member

cretz commented Aug 16, 2024

The main place (async) iterators are used in other SDKs is listing workflows, listing schedules, and iterating history events. So would add "iterating history events" to your list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants