src/Epam.GraphQL/TaskBatcher/IBatchLoaderCompletionSource.cs (11 lines of code) (raw):
// Copyright © 2020 EPAM Systems, Inc. All Rights Reserved. All information contained herein is, and remains the
// property of EPAM Systems, Inc. and/or its suppliers and is protected by international intellectual
// property law. Dissemination of this information or reproduction of this material is strictly forbidden,
// unless prior written permission is obtained from EPAM Systems, Inc
using System;
using System.Threading.Tasks;
namespace Epam.GraphQL.TaskBatcher
{
internal interface IBatchLoaderCompletionSource<TItem>
{
TaskStatus Status { get; }
void SetResult(TItem item);
void SetException(Exception exception);
}
}