mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 22:17:51 +01:00
CachedResponseStream.Create -> ValueTask
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Tgstation.Server.Common.Http
|
||||
/// </summary>
|
||||
/// <param name="response">The <see cref="HttpResponseMessage"/> to build from.</param>
|
||||
/// <returns>A <see cref="Task{TResult}"/> resulting in a new <see cref="CachedResponseStream"/>.</returns>
|
||||
public static async Task<CachedResponseStream> Create(HttpResponseMessage response)
|
||||
public static async ValueTask<CachedResponseStream> Create(HttpResponseMessage response)
|
||||
{
|
||||
if (response == null)
|
||||
throw new ArgumentNullException(nameof(response));
|
||||
|
||||
Reference in New Issue
Block a user