/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/IRequestExecutionQueue.cs
30 строк
1 KB
Cyrus Najmabadi
Remove unnecessary imports
10 мар 2025, 17:04
10 мар 2025, 17:04
58c992f
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // This is consumed as 'generated' code in a source package and therefore requires an explicit nullable enable #nullable enable using System; using System.Threading; using System.Threading.Tasks; namespace Microsoft.CommonLanguageServerProtocol.Framework; /// <summary> /// Queues requests to be executed in the proper order. /// </summary> /// <typeparam name="TRequestContext">The type of the RequestContext to be used by the handler.</typeparam> internal interface IRequestExecutionQueue<TRequestContext> : IAsyncDisposable { /// <summary> /// Queue a request. /// </summary> /// <returns>A task that completes when the handler execution is done.</returns> Task<object?> ExecuteAsync(object? serializedRequest, string methodName, ILspServices lspServices, CancellationToken cancellationToken); /// <summary> /// Start the queue accepting requests once any event handlers have been attached. /// </summary> void Start(); }