-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix usage of GetAwaiter() #452
Comments
|
Fair enough. Maybe this is something we can tackle as part of whatever comes out of #431. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@martincostello is this still open? May I look at it? |
@maurofranchi I believe this one is pending us finishing the test migration to the new fluent API. Once we've done that, we can start to delete the old API, which is where these two usages live. |
@maurofranchi See #471. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closed automatically due to inactivity. |
This isn't completed. There's still 5 uses of |
It's worth restating the problem with
For point 1, we don't expect typical usage of the library to have a For 2, generally it's good practice to not ignore this issue, however it's should only cause issues where you are repeatedly blocking threadpool threads, and here it's a one-off activity maybe a few of these calls will happen when the app first starts up. So it could be worth mitigating 1 with the technique @shaynevanasperen is referring to, and ultimately adding an async initialization method. We had removed all other blocking calls where it mattered most, but had 2 (at least) attempts to get rid of the initialization blocking calls, but we never quite got it right, it required a breaking change and it would always lead to us saying "Well if we are going to make such a big breaking change, we may as well fix all of the things around the broken fluent api", then the change would be too big to get in. With @martincostello |
For v7 we should make it async all the way down. Then if there's any async gymnastics needed at the root caller into our API surface it can be done once there. The laziness should make that easy to do as everything would just be deferred to publish/subscribe time, and if necessary we can make a "do it now" method, and then the integrator is responsible for doing a sync async call, not us. |
Agreed. So just to make sure we are on the same page, we could have an |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is now completed as of PR #749 |
JustSayingFluently
usesTask.GetAwaiter().GetResult()
in two places.We should see if we can do something to remove these, or failing that, provide a "safer" way to make the asynchronous calls synchronous (
TaskCompletionSource
?).The text was updated successfully, but these errors were encountered: