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

Updated FileWrapper async calls to allow errors to bubble up. #492

Merged
merged 2 commits into from
Jul 9, 2019
Merged

Updated FileWrapper async calls to allow errors to bubble up. #492

merged 2 commits into from
Jul 9, 2019

Conversation

JerrettDavis
Copy link
Contributor

Await all asynchronous FileWrapper calls. Unawaited calls did not bubble up errors, per issue #491 .

@robkeim
Copy link
Contributor

robkeim commented Jul 8, 2019

@JerrettDavis I didn't see your PR until I pushed mine #493 :(

I'd prefer to avoid adding the async keyword to all of those methods because that has a performance impact. Instead we can return the underlying Task directly and let upstream callers decide how and when they want to handle it.

@JerrettDavis
Copy link
Contributor Author

No worries, I was mostly trying to get a quick proof of concept working just to verify I wasn't going crazy. Whatever works!

@robkeim
Copy link
Contributor

robkeim commented Jul 8, 2019

You're definitely not going crazy... thanks for taking the time to report this issue!

@JerrettDavis JerrettDavis reopened this Jul 8, 2019
@JerrettDavis
Copy link
Contributor Author

I went ahead and corrected my PR, just in case.

Copy link
Contributor

@robkeim robkeim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good, thanks @JerrettDavis!

@robkeim
Copy link
Contributor

robkeim commented Jul 9, 2019

Let's keep this PR, I've gone ahead and closed mine.

@fgreinacher fgreinacher merged commit caf3259 into TestableIO:master Jul 9, 2019
@fgreinacher
Copy link
Contributor

Thanks!

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.

4 participants