From 4757ca977067797f08a5515495ffc1edb52217de Mon Sep 17 00:00:00 2001 From: Dominion Date: Mon, 12 Jun 2023 14:05:23 -0400 Subject: [PATCH] SemaphoreSlimContext.Lock -> ValueTask --- src/Tgstation.Server.Host/Utils/SemaphoreSlimContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Utils/SemaphoreSlimContext.cs b/src/Tgstation.Server.Host/Utils/SemaphoreSlimContext.cs index cdbe250071..a33ad5ffb4 100644 --- a/src/Tgstation.Server.Host/Utils/SemaphoreSlimContext.cs +++ b/src/Tgstation.Server.Host/Utils/SemaphoreSlimContext.cs @@ -15,7 +15,7 @@ namespace Tgstation.Server.Host.Utils /// The to lock. /// The for the operation. /// A resulting in the for the lock. - public static async Task Lock(SemaphoreSlim semaphore, CancellationToken cancellationToken) + public static async ValueTask Lock(SemaphoreSlim semaphore, CancellationToken cancellationToken) { ArgumentNullException.ThrowIfNull(semaphore); cancellationToken.ThrowIfCancellationRequested();