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

Make iterator printer generic #39

Merged
merged 1 commit into from
Feb 23, 2023
Merged

Make iterator printer generic #39

merged 1 commit into from
Feb 23, 2023

Conversation

feedmeapples
Copy link
Contributor

@feedmeapples feedmeapples commented Feb 23, 2023

What was changed

made output.PrintIterator API take generic iterator, not just over interface{} items

Why?

Allows reusing the iterator API when initializing new iterator implementations, e.g consuming the iterator provided by Go SDK GetWorkflowHistory API

Checklist

  1. Closes

  2. How was this tested:

Tested with temporalio/cli#110

  1. Any docs updates needed?

@feedmeapples feedmeapples merged commit 2da157e into main Feb 23, 2023
@feedmeapples feedmeapples deleted the generic-iterator branch February 23, 2023 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants