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

ObjectClient.list has an annoying return type #104

Open
db48x opened this issue Mar 24, 2022 · 2 comments
Open

ObjectClient.list has an annoying return type #104

db48x opened this issue Mar 24, 2022 · 2 comments

Comments

@db48x
Copy link

db48x commented Mar 24, 2022

It returns a Stream of Result<ObjectList>, which on one level is fine because it is exactly what Google makes available. At least for my use–case it would simplify things if there were a method that returned a Stream of Object instead.

@ThouCheese
Copy link
Owner

How would you deal with failures with such an api? Do you want to have the Stream<Result<ObjectList>> swapped for a Result<Stream<ObjectList>>?

@ThouCheese
Copy link
Owner

Maybe we can add an example of how to go from one to the other to the documentation?

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

No branches or pull requests

2 participants