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

Async tweaks #40

Merged
merged 3 commits into from
Jan 27, 2022
Merged

Async tweaks #40

merged 3 commits into from
Jan 27, 2022

Conversation

Zastai
Copy link
Owner

@Zastai Zastai commented Jan 27, 2022

This drops the use of a client lock (not needed for HttpClient), and ensures all internally-awaited tasks use ConfigureAwait(false).

`HttpClient` is fully thread-safe so does not need extra locking around
it.

This also renames `RequestLock` to `DelayLock`, to better describe what
it is used for, and avoids during more work inside the lock than is
strictly needed.
This is for the default value of `cancellationToken` parameters.
It's longer, leading to more line breaks, but it also reads better.
@Zastai Zastai added the maintenance Internal changes that do not impact functionality or API label Jan 27, 2022
@Zastai Zastai merged commit 0ed8fb2 into main Jan 27, 2022
@Zastai Zastai deleted the async-tweaks branch January 27, 2022 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Internal changes that do not impact functionality or API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant