From 6c57f8178310a87eb5612f3156e2171cdba305e6 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Thu, 9 Jan 2025 12:09:36 +0100 Subject: [PATCH] Call ConfigureAwait on CancellationToken.Register. --- src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs b/src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs index cf7344180..df0e9ea70 100644 --- a/src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs +++ b/src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs @@ -123,7 +123,7 @@ private void Signal(ResponseMessage response) public async IAsyncEnumerator> GetAsyncEnumerator(CancellationToken ct = default) { - await using (ct.Register(Dispose)) + await using (ct.Register(Dispose).ConfigureAwait(false)) { if (await new ValueTask?>(this, 0).ConfigureAwait(false) is { } union) {