// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; namespace Microsoft.AspNetCore.Mvc.Internal { public static class TaskCache { /// /// A that's already completed successfully. /// /// /// We're caching this in a static readonly field to make it more inlinable and avoid the volatile lookup done /// by Task.CompletedTask. /// public static readonly Task CompletedTask = Task.CompletedTask; } }